summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-05-22 00:36:21 +0000
committererdgeist <erdgeist@erdgeist.org>2006-05-22 00:36:21 +0000
commite71bebd00398541a96c70fe320c0062420b5a9e1 (patch)
treee48bf14c86c5bc2379e55654acecc3516aa39e60 /ezjail-admin
parent5c2ac7cf28973a67df34da71b670e8d74d776ddd (diff)
simple image jails did not have their device provided correctly. Fixed.
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin5
1 files changed, 4 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index f43c9f6..4d59de3 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -644,9 +644,12 @@ config)
644 # Device to mount is not md anymore 644 # Device to mount is not md anymore
645 ezjail_device=${ezjail_imagedevice}.eli 645 ezjail_device=${ezjail_imagedevice}.eli
646 ;; 646 ;;
647 simple)
648 ezjail_device=${ezjail_imagedevice}
649 ;;
647 esac 650 esac
648 651
649 mount /dev/${ezjail_device} ${ezjail_rootdir} || detach_images keep || exerr "Error: Could not mount /dev/${ezjail_device} to ${ezjail_root}." 652 mount /dev/${ezjail_device} ${ezjail_rootdir} || detach_images keep || exerr "Error: Could not mount /dev/${ezjail_device} to ${ezjail_rootdir}."
650 # relink image device 653 # relink image device
651 ln -s /dev/${ezjail_device} ${ezjail_rootdir}.device 654 ln -s /dev/${ezjail_device} ${ezjail_rootdir}.device
652 655