diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-06-20 11:21:32 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-06-20 11:24:12 +0200 |
commit | 966afa2d6418e8f2bd542cce0cda492a598cf32e (patch) | |
tree | e75b24fc2d46d30e9edd9cd0430529e07149f3f5 /scripts/build/installer_debian-installer | |
parent | 001612cdc71267ca46b8fadabd03e86e3c708f36 (diff) | |
download | vyos-live-build-966afa2d6418e8f2bd542cce0cda492a598cf32e.tar.gz vyos-live-build-966afa2d6418e8f2bd542cce0cda492a598cf32e.zip |
Splitting out preseed handling from main installer script.
Diffstat (limited to 'scripts/build/installer_debian-installer')
-rwxr-xr-x | scripts/build/installer_debian-installer | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer index 9cd11f721..3606b76f8 100755 --- a/scripts/build/installer_debian-installer +++ b/scripts/build/installer_debian-installer @@ -791,12 +791,6 @@ EOF ln -s . binary/debian ;; esac - - # Including preseeding files - if Find_files config/debian-installer/*.cfg - then - cp config/debian-installer/*.cfg binary/install - fi fi Repack_initrd() @@ -820,7 +814,13 @@ Repack_initrd() if [ ! -d "${INCLUDE_PATH}" ] then # Invoked the old way, just copy the preseeds - cp ../config/debian-installer/*.cfg . + for _FILE in ../config/preseed/*.cfg ../config/preseed/*.cfg.installer + do + if [ -e "${_FILE}" ] + then + cp "${_FILE}" . + fi + done else # New way, include target directory content in the initrd REPACK_TMPDIR_ABS="${PWD}" @@ -835,7 +835,7 @@ Repack_initrd() } # Preseed d-i by repacking the initrd in certain situations -if [ "${DI_IMAGE_TYPE}" = "netboot" ] && [ -e config/debian-installer/preseed.cfg ] +if [ "${DI_IMAGE_TYPE}" = "netboot" ] && ( ls config/preseed/*.cfg > /dev/null 2>&1 || ls config/preseed/*.cfg.installer > /dev/null 2>&1 ) then Repack_initrd "${DESTDIR}"/"${INITRD_DI}" |