summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-12-16 12:04:50 +0100
committer Eric Hameleers <alien@slackware.com>2015-12-16 12:04:50 +0100
commit80a6bb69887b158996f8298a9260999201596217 (patch)
tree67e2d57b06378dcb423972b6a49a6ae7d86a3f9e
parentc5efe0c3040d6cdba01c64050d5ae3e1dcea1f99 (diff)
downloadliveslak-80a6bb69887b158996f8298a9260999201596217.tar.gz
liveslak-80a6bb69887b158996f8298a9260999201596217.tar.xz
Make the marker used for finding the Slackware Live files configurable.
Configured in variable MARKER, the default value is "SLACKWARELIVE".
-rwxr-xr-xmake_slackware_live.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index adf5b82..8f49a9b 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -91,6 +91,9 @@ BUILDER=${BUILDER:-"Alien BOB"}
# The ISO main directory:
LIVEMAIN=${LIVEMAIN:-"liveslak"}
+# Marker used for finding the Slackware Live files:
+MARKER=${MARKER:-"SLACKWARELIVE"}
+
# The filesystem label we will be giving our ISO:
MEDIALABEL=${MEDIALABEL:-"LIVESLAK"}
@@ -206,8 +209,8 @@ function install_pkgs() {
if [ ! -d "$2" ]; then
echo "-- function install_pkgs: Target directory '$2' does not exist!"
exit 1
- elif [ ! -f "$2/SLACKWARELIVE" ]; then
- echo "-- function install_pkgs: Target '$2' does not contain 'SLACKWARELIVE' file."
+ elif [ ! -f "$2/${MARKER}" ]; then
+ echo "-- function install_pkgs: Target '$2' does not contain '${MARKER}' file."
echo "-- Did you choose the right installation directory?"
exit 1
fi
@@ -558,7 +561,7 @@ fi
unset INSTDIR
RODIRS="${LIVE_BOOT}"
# Create the verification file for the install_pkgs function:
-echo "${THEDATE} (${BUILDER})" > ${LIVE_BOOT}/SLACKWARELIVE
+echo "${THEDATE} (${BUILDER})" > ${LIVE_BOOT}/${MARKER}
# Determine which module sequence we have to build:
case "$LIVEDE" in
@@ -608,7 +611,7 @@ for SPS in ${SL_SERIES} ; do
# - the module does not yet exist.
# Create the verification file for the install_pkgs function:
- echo "${THEDATE} (${BUILDER})" > ${INSTDIR}/SLACKWARELIVE
+ echo "${THEDATE} (${BUILDER})" > ${INSTDIR}/${MARKER}
echo "-- Installing the '${SPS}' series."
umount ${LIVE_ROOTDIR} 2>${DBGOUT} || true
@@ -1184,9 +1187,14 @@ fi
# Copy the UEFI boot directory structure:
cp -a ${LIVE_TOOLDIR}/EFI ${LIVE_STAGING}/
+# The grub-embedded.cfg in the bootx64.efi looks for this file:
+touch ${LIVE_STAGING}/EFI/BOOT/${MARKER}
+touch ${LIVE_STAGING}/${LIVEMAIN}/${MARKER}
+
# Generate the UEFI grub boot image if needed:
if [ ! -f ${LIVE_STAGING}/EFI/BOOT/bootx64.efi -o ! -f ${LIVE_STAGING}/boot/syslinux/efiboot.img ]; then
( cd ${LIVE_STAGING}/EFI/BOOT
+ sed -i -e "s/SLACKWARELIVE/${MARKER}/g" grub-embedded.cfg
sh make-grub.sh
)
fi