Symlink to live file, rather than copying (we do it with preseed anyway)

merge-requests/16/head
Ben Wilson 4 years ago
parent e695c81d1a
commit 4b6aa7a76d

4
.gitignore vendored

@ -23,11 +23,9 @@ live-image-*.contents
live-image-*.files
live-image-*.hybrid.iso.zsync
live-image-*.packages
# Rverwritten due to build.sh
kali-config/common/includes.installer/kali-finish-install
# Overwritten due to build.sh
simple-cdd/debian-cd/*
simple-cdd/profiles/kali.downloads
simple-cdd/profiles/kali.postinst
# Miscellaneous
.lock
.stage

@ -280,15 +280,11 @@ set +e
case "$IMAGE_TYPE" in
live)
debug "Stage 1/3 - File(s)"
run_and_log cp kali-config/common/post-install/kali-finish-install kali-config/common/includes.installer/
[ $? -eq 0 ] || failure
debug "Stage 2/3 - Config"
debug "Stage 1/2 - Config"
run_and_log lb config -a $KALI_ARCH $KALI_CONFIG_OPTS "$@"
[ $? -eq 0 ] || failure
debug "Stage 3/3 - Build"
debug "Stage 2/2 - Build"
run_and_log $SUDO lb build
if [ $? -ne 0 ] || [ ! -e $IMAGE_NAME ]; then
failure
@ -333,10 +329,6 @@ case "$IMAGE_TYPE" in
simple-cdd/debian-cd/data/$CODENAME/exclude-udebs-i386
[ $? -eq 0 ] || failure
# Update the post-install script
run_and_log cp kali-config/common/post-install/kali-finish-install simple-cdd/profiles/kali.postinst
[ $? -eq 0 ] || failure
# Configure the kali profile with the packages we want
run_and_log grep -v '^#' kali-config/installer-$KALI_VARIANT/packages \
> simple-cdd/profiles/kali.downloads

@ -0,0 +1 @@
../../kali-config/common/includes.installer/kali-finish-install
Loading…
Cancel
Save