From 0d75cd1e2689f4c59ced3915475554f25a73dfb7 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 22 Jul 2016 15:20:34 +0200 Subject: liveinit: replace instances of 'live' username with '${LIVEUID}'. --- liveinit | 14 ++++++++------ make_slackware_live.sh | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/liveinit b/liveinit index bde1cb4..db03808 100755 --- a/liveinit +++ b/liveinit @@ -40,6 +40,8 @@ LIVEMAIN="@LIVEMAIN@" MARKER="@MARKER@" PERSISTENCE="@PERSISTENCE@" +LIVEUID="@LIVEUID@" + LIVEMEDIA="" LIVEPATH="" @@ -893,21 +895,21 @@ EOT echo ${TZ} > /mnt/overlay/etc/timezone # KDE4 and PLASMA5 user timezone re-configuration: - if [ -f /mnt/overlay/home/live/.kde/share/config/ktimezonedrc ]; then + if [ -f /mnt/overlay/home/${LIVEUID}/.kde/share/config/ktimezonedrc ]; then sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \ - /mnt/overlay/home/live/.kde/share/config/ktimezonedrc + /mnt/overlay/home/${LIVEUID}/.kde/share/config/ktimezonedrc fi - if [ -f /mnt/overlay/home/live/.config/ktimezonedrc ]; then + if [ -f /mnt/overlay/home/${LIVEUID}/.config/ktimezonedrc ]; then sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \ - /mnt/overlay/home/live/.config/ktimezonedrc + /mnt/overlay/home/${LIVEUID}/.config/ktimezonedrc fi fi if [ ! -z "$LIVEPW" ]; then # User entered a custom live password on the boot commandline: - echo "${MARKER}: Changing password for user 'live'." + echo "${MARKER}: Changing password for user '${LIVEUID}'." chroot /mnt/overlay /usr/sbin/chpasswd < ${LIVE_ROOTDIR}/boot/initrd-tree/init cat /dev/null > ${LIVE_ROOTDIR}/boot/initrd-tree/luksdev # We do not add openobex to the initrd and don't want to see irrelevant errors: -- cgit v1.2.3