On December 8, 2015 4:21:16 PM GMT+01:00, Otto Moerbeek <o...@drijf.net> wrote:
>On Tue, Dec 08, 2015 at 03:03:14PM +0000, Tati Chevron wrote:
>
>> Currently, it's possible, (as root), to do something like:
>> 
>> # mount_mfs -s 1g swap /
>> 
>> which succeeds, and mounts the empty filesystem as the root
>filesystem.
>> 
>> This makes the machine inoperable and requires a physical reset,
>without a clean shutdown, as no system binaries are available.
>> 
>> Shouldn't we make mount_mfs error out in this case?
>
>Why? Unix does not prevent you from doing stupid things in general. 
>
>Besides, a small variation (using -P) could be a proper and sane use
>of mount_mfs on /

FWIW, I don't think so, as the mfs is populated after being mounted. 

>
>       -Otto

Reply via email to