diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-08-10 08:03:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-08-10 08:03:02 +0000 |
commit | 01583d526c8398b466bd66e331785768dccc5b60 (patch) | |
tree | cdfebedd2ecaed1be5f0fe47782371c8a8dd93c3 /rescue/make_rescue_img | |
parent | ee1a64bdbd11691d9ab112557f61bd9de0e3f97a (diff) | |
download | drakx-01583d526c8398b466bd66e331785768dccc5b60.tar drakx-01583d526c8398b466bd66e331785768dccc5b60.tar.gz drakx-01583d526c8398b466bd66e331785768dccc5b60.tar.bz2 drakx-01583d526c8398b466bd66e331785768dccc5b60.tar.xz drakx-01583d526c8398b466bd66e331785768dccc5b60.zip |
umount mount point instead of umounting the loopback file
(works better when /etc/mtab is /proc/mounts)
Diffstat (limited to 'rescue/make_rescue_img')
-rwxr-xr-x | rescue/make_rescue_img | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index 9c7352338..076273f34 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -122,7 +122,7 @@ if (arch() =~ /ppc/) { } mkdir_p($mnt); -__ "$sudo umount $rescue 2>/dev/null"; +__ "$sudo umount $mnt 2>/dev/null"; _ "dd if=/dev/zero of=$rescue bs=1k count=$size"; _ "$mke2fs $rescue"; @@ -133,7 +133,7 @@ _ "$sudo chown -R root.root $tmp"; _ "$sudo cp -a $tmp/* $mnt"; _ "$sudo rm -rf $tmp"; -_ "$sudo umount $rescue"; +_ "$sudo umount $mnt"; _ "rmdir $mnt"; _ "bzip2 -f -9 $rescue"; |