Skip to content

Commit 1ac59c3

Browse files
committed
iso-remaster: add samples for including answerfile inside ISO
Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
1 parent a1b9873 commit 1ac59c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

scripts/iso-remaster/samples/patch-installimg.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -ex
66
# unpacked rootfs to modify
77
INSTALLIMG="$1"
88

9+
# # Include an answerfile (also needs answerfile=file:// in patch-iso.sh)
10+
# cp ~/my/preset.xml "$INSTALLIMG/"
11+
912
# # Include a locally-modified version of the installer for testing
1013
# HOSTINSTALLER=$HOME/src/xs/host-installer
1114
# if [ -r "$HOSTINSTALLER"/Makefile ]; then

scripts/iso-remaster/samples/patch-iso.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ SED_COMMANDS+=(-e "s@^@@")
2727
# # get an answerfile over the network
2828
# SED_COMMANDS+=(-e "s@/vmlinuz@/vmlinuz install answerfile=http://pxe/configs/preset.xml@")
2929

30+
# # get an answerfile from the ISO's install.img (also needs to copy preset.xml in patch-installimg.sh)
31+
# SED_COMMANDS+=(-e "s@/vmlinuz@/vmlinuz install answerfile=file:///preset.xml@")
32+
3033
sed -i "${SED_COMMANDS[@]}" \
3134
"$ISODIR"/*/*/grub*.cfg \
3235
"$ISODIR"/boot/isolinux/isolinux.cfg

0 commit comments

Comments
 (0)