summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-01-23 15:00:05 +0100
committer Eric Hameleers <alien@slackware.com>2017-01-23 15:00:05 +0100
commit02fd55b837b5e6e0debfaa93464b424802a68c91 (patch)
tree66998a581f0de6c7b9eba85ef9fd5d8acf26d2a0
parentdce5d0d1da24641670b607933804b524e2347980 (diff)
downloadliveslak-02fd55b837b5e6e0debfaa93464b424802a68c91.tar.gz
liveslak-02fd55b837b5e6e0debfaa93464b424802a68c91.tar.xz
The liveinit script is a template too and cannot be used as-is.
This file was forgotten in the previous commit. It has now also been given a '.tpl' extension in the liveslak sources, to indicate that it is a template and not usable as-is. The 'make_slackware_live.sh' script parses the template file and performs a series of variable substitutions to generate the final 'init' script inside the initrd of the ISO image.
-rwxr-xr-xliveinit.tpl (renamed from liveinit)0
-rwxr-xr-xmake_slackware_live.sh2
2 files changed, 1 insertions, 1 deletions
diff --git a/liveinit b/liveinit.tpl
index 3b035c0..3b035c0 100755
--- a/liveinit
+++ b/liveinit.tpl
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 1164691..746bbbc 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1876,7 +1876,7 @@ fi
echo "-- Creating initrd for kernel-generic $KVER ..."
chroot ${LIVE_ROOTDIR} /sbin/mkinitrd -c -w ${WAIT} -l us -o /boot/initrd_${KVER}.img -k ${KVER} -m ${KMODS} -L -C dummy 1>${DBGOUT} 2>${DBGOUT}
# Modify the initrd content for the Live OS:
-cat $LIVE_TOOLDIR/liveinit | sed \
+cat $LIVE_TOOLDIR/liveinit.tpl | sed \
-e "s/@LIVEMAIN@/$LIVEMAIN/g" \
-e "s/@MARKER@/$MARKER/g" \
-e "s/@MEDIALABEL@/$MEDIALABEL/g" \