diff options
author | Eric Hameleers <alien@slackware.com> | 2015-12-02 11:26:03 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-12-02 11:26:03 +0100 |
commit | af83560e632183112455ea9b89d558a8b952ffb3 (patch) | |
tree | c8da84e28b85990f67531e7de428445452c6b727 /make_slackware_live.sh | |
parent | 719100da4a9f0966a4570ae49a40f5df0eb7fa09 (diff) | |
download | liveslak-af83560e632183112455ea9b89d558a8b952ffb3.tar.gz liveslak-af83560e632183112455ea9b89d558a8b952ffb3.tar.xz |
Add support for alternative directorynames of 'persistence' and 'liveslak'.
The persistence directory on USB is called 'persistence' by default but can
now be re-defined when running 'make_slackware_live.sh' to create the ISO.
Additionally it can be changed dynamically on boot of the Live OS by adding
a 'persistence=<dirname>' parameter to the boot.
The Live OS main directory is called 'liveslak' by default but can
now be re-defined when running 'make_slackware_live.sh' to create the ISO.
Additionally it can be changed dynamically on boot of the Live OS by adding
a 'livemain=<dirname>' parameter to the boot.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-x | make_slackware_live.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index a29f9ad..9999035 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -91,6 +91,9 @@ LIVEMAIN=${LIVEMAIN:-"liveslak"} # The filesystem label we will be giving our ISO: MEDIALABEL=${MEDIALABEL:-"LIVESLAK"} +# The name of the directory used for storing persistence data: +PERSISTENCE=${PERSISTENCE:-"persistence"} + # Slackware version to use (note: this won't work for Slackware <= 14.1): SL_VERSION=${SL_VERSION:-"current"} @@ -1121,8 +1124,9 @@ KVER=$(ls ${LIVE_ROOTDIR}/var/log/packages/kernel*modules* |head -1 |rev | cut - echo "-- Creating initrd for kernel-generic $KVER ..." chroot ${LIVE_ROOTDIR} /sbin/mkinitrd -c -l us -o /boot/initrd_${KVER}.gz -k ${KVER} -m ${KMODS} 1>${DBGOUT} 2>${DBGOUT} cat $LIVE_TOOLDIR/liveinit | sed \ - -e "s/@MEDIALABEL@/$MEDIALABEL/g" \ -e "s/@LIVEMAIN@/$LIVEMAIN/g" \ + -e "s/@MEDIALABEL@/$MEDIALABEL/g" \ + -e "s/@PERSISTENCE@/$PERSISTENCE/g" \ -e "s/@DARKSTAR@/$LIVE_HOSTNAME/g" \ > ${LIVE_ROOTDIR}/boot/initrd-tree/init chroot ${LIVE_ROOTDIR} /sbin/mkinitrd 1>/dev/null 2>${DBGOUT} |