On Monday 21 May 2007 09:05, Steffen Winterfeldt wrote:
On Mon, 21 May 2007, Randall R Schulz wrote:
On Monday 21 May 2007 08:37, Steffen Winterfeldt wrote:
...
Really cool users can show their advancedness by booting with (for example):
insmod=vfat exec="mount /dev/sda1 /mnt ; dd if=/dev/zero of=/mnt/foo bs=1G count=1 ; mkswap /mnt/foo ; swapon /mnt/foo ; /usr/local/bin/umount -l /mnt"
which does exactly what you want. :-)
That's definitely cool, ...
...
By the way, why attempt to unmount /mnt? Since there's now an open file there, is it not guaranteed to fail?
You need to get rid of it, because (a) yast uses /mnt and (b) yast might want to mount the partition itself. umount will not fail as '-l' makes a 'lazy' umount (unmounts no matter what).
Ah. That one was new to me. The man page clarifies that the mount point is freed up but resources in use on the mounted system remain intact until released in the normal manner by whatever is using them. You could always use an alternate mount point, creating it first with mkdir. And despite the obvious infallibility of your commands, if for some reason the unmount failed, then YaST's or the installer's need to subsequently mount something there would also fail. Better to preclude the possibility, no? (In true Murphy's law style!)
Steffen
Randall Schulz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org