diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-11-27 14:36:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-11-27 14:36:04 +0000 |
commit | fc54afb098f4d12153857e779d34af531875b1cd (patch) | |
tree | 253510965859bf935f63f1b8125cf717b31e7901 | |
parent | 639925a8ff64f0d44c4528c596cb76fb4814d58a (diff) | |
download | drakx-backup-do-not-use-fc54afb098f4d12153857e779d34af531875b1cd.tar drakx-backup-do-not-use-fc54afb098f4d12153857e779d34af531875b1cd.tar.gz drakx-backup-do-not-use-fc54afb098f4d12153857e779d34af531875b1cd.tar.bz2 drakx-backup-do-not-use-fc54afb098f4d12153857e779d34af531875b1cd.tar.xz drakx-backup-do-not-use-fc54afb098f4d12153857e779d34af531875b1cd.zip |
if /image is a symlink, don't try to umount and so don't fail
-rwxr-xr-x | move/tree/mdk_behind_totem | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/move/tree/mdk_behind_totem b/move/tree/mdk_behind_totem index e098f0196..094c70d83 100755 --- a/move/tree/mdk_behind_totem +++ b/move/tree/mdk_behind_totem @@ -42,8 +42,10 @@ umount_cd() { ln -sf /image_always/lib / - umount /image && \ - /image_always/sbin/losetup -d /dev/$main_loop || { mount_cd; kill $totem_pid; exec mdk_totem; } + if [ ! -l /image ]; then + umount /image && \ + /image_always/sbin/losetup -d /dev/$main_loop || { mount_cd; kill $totem_pid; exec mdk_totem; } + fi /image_always/usr/bin/eject } |