Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Warn if update option is used without chroot being present
authorMichael Prokop
Tue Oct 30 00:30:57 2007 +0100 (13 months ago)
changeset 236afb9c8b840ea
manifestafb9c8b840ea
parent 23530a66e596836
child 2373f49cd547c26
Warn if update option is used without chroot being present
grml-live
--- a/grml-live Tue Oct 30 00:10:00 2007 +0100
+++ b/grml-live Tue Oct 30 00:30:57 2007 +0100
@@ -305,6 +305,15 @@ else
FAI_ACTION=dirinstall
fi
+if [ -n "$UPDATE" ] ; then
+ if ! [ -r "$CHROOT_OUTPUT/etc/grml_version" ] ; then
+ log "Error: It does not look like you have a working chroot system. Updating not possible."
+ eerror "Error: It does not look like you have a working chroot system. Updating not possible."
+ eend 1
+ bailout 20
+ fi
+fi
+
if [ -d "$CHROOT_OUTPUT/bin" -a -z "$UPDATE" ] ; then
log "$CHROOT_OUTPUT exists already, skipping stage 'fai dirinstall'"
ewarn "$CHROOT_OUTPUT exists already, skipping stage 'fai dirinstall'" ; eend 0