]> spindle.queued.net Git - xodist/blobdiff - mkchroot.sh
installer: figure out where to install to..
[xodist] / mkchroot.sh
index 7867a8ac582adca82b7bc9ec7024fce9d6f24b13..e1cb6bb2b8356c09981a2277d97cd8277c424e3a 100755 (executable)
@@ -32,6 +32,7 @@ usage()
        echo "" 1>&2
        echo "Options:" 1>&2
        echo "  --config-type <config>    directory name in configs/ to use" 1>&2
+       echo "  --help                    display this help screen" 1>&2
        echo "  --local-apt-mirror <srcs> sources.list for local mirror" 1>&2
        echo "" 1>&2
        exit 1
@@ -52,6 +53,9 @@ do
                LOCAL_APT_MIRROR="$2"
                shift
                ;;
+       --help|-h)
+               usage
+               ;;
        *)
                if [ "$#" != "1" ]; then
                        echo "Unknown option $1" 1>&2
@@ -136,6 +140,10 @@ EOF
 # set the default locale
 echo "${IMG_LOCALE}" >${ROOT_DIR}/etc/locale.gen
 
+# add support for installation onto a block device
+mkdir -p ${ROOT_DIR}/etc/initramfs-tools/scripts/local-bottom
+cp installer ${ROOT_DIR}/etc/initramfs-tools/scripts/local-bottom/
+
 # run any customizations necessary pre-package install
 customize_chroot_hook "$ROOT_DIR"