X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=d4957a4ed5d10ee0ead66bbfc5d1661d0b24a9a9;hp=9d951eca8e4fe457d52397c8663a68083a52ff5e;hb=364ca0650742d2b6700c614be1dad5a1ec108c23;hpb=a08e5b7632b67aea49d355f251c2486ef2a6fd91 diff --git a/grml-debootstrap b/grml-debootstrap index 9d951ec..d4957a4 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -45,6 +45,7 @@ Bootstrap options: -p, --mntpoint=mnt Mountpoint used for mounting the target system. --debopt=params Extra parameters passed to the debootstrap. --interactive Use interactive mode (frontend). + --nodebootstrap Skip debootstrap, only do configuration to the target. Configuration options: @@ -689,6 +690,10 @@ debootstrap_system() { if ! grep -q $MNTPOINT /proc/mounts ; then mount_target fi + if [ "$_opt_nodebootstrap" ]; then + einfo "Skipping debootstrap as requested." + return + fi if grep -q $MNTPOINT /proc/mounts || [ -n "$DIRECTORY" ] ; then einfo "Running $DEBOOTSTRAP $DEBOOTSTRAP_OPT for release ${RELEASE}${ARCHINFO} using ${MIRROR}${ISO}" [ -n "$MIRROR" ] && $DEBOOTSTRAP $ARCHCMD $DEBOOTSTRAP_OPT $RELEASE $MNTPOINT $MIRROR || \