Skip to content

Commit

Permalink
Warn if update option is used without chroot being present
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Prokop committed Oct 29, 2007
1 parent 1be31a7 commit c3646d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions grml-live
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3646d3

Please sign in to comment.