From c62dfcf9f5568aebea8ba5547a00d05bb2c94a00 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 27 Nov 2003 14:45:37 +0000 Subject: fake umounting /image when we use live_tree/ instead of live_tree.clp --- move/tree/mdk_behind_totem | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'move') diff --git a/move/tree/mdk_behind_totem b/move/tree/mdk_behind_totem index 094c70d83..e7a37f3b4 100755 --- a/move/tree/mdk_behind_totem +++ b/move/tree/mdk_behind_totem @@ -42,7 +42,9 @@ umount_cd() { ln -sf /image_always/lib / - if [ ! -l /image ]; then + if [ -l /image ]; then + rm -f /image + else umount /image && \ /image_always/sbin/losetup -d /dev/$main_loop || { mount_cd; kill $totem_pid; exec mdk_totem; } fi @@ -52,8 +54,12 @@ umount_cd() { mount_cd() { echo mount_cd - /image_always/sbin/losetup -r -e gz /dev/$main_loop /cdrom/live_tree.clp - /image_always/bin/mount /dev/$main_loop /image + if [ -e /cdrom/live_tree.clp ]; then + /image_always/sbin/losetup -r -e gz /dev/$main_loop /cdrom/live_tree.clp + /image_always/bin/mount /dev/$main_loop /image + else + ln -sf /cdrom/live_tree /image + fi losetup -r -e gz /dev/$boot_loop /cdrom/live_tree_boot.clp mount /dev/$boot_loop /image_boot -- cgit v1.2.1