about summary refs log tree commit diff
path: root/installer.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-09-24 17:06:33 +0200
committerJuan RP <xtraeme@gmail.com>2014-09-24 17:06:33 +0200
commit5eae360a239555423dd9fad0a542af026a5f3905 (patch)
treef1bc453b03785835cfa59d8c7c9d28e6c108d3c6 /installer.sh.in
parent2e76fa65a6ce9672ed2d4a4c3586738a8afd581d (diff)
downloadhrmpf-5eae360a239555423dd9fad0a542af026a5f3905.tar.gz
hrmpf-5eae360a239555423dd9fad0a542af026a5f3905.tar.xz
hrmpf-5eae360a239555423dd9fad0a542af026a5f3905.zip
installer: remove obsolete autologin code; remove /etc/issue from live image.
Diffstat (limited to 'installer.sh.in')
-rw-r--r--installer.sh.in8
1 files changed, 1 insertions, 7 deletions
diff --git a/installer.sh.in b/installer.sh.in
index 4833f41..cff64f4 100644
--- a/installer.sh.in
+++ b/installer.sh.in
@@ -840,14 +840,8 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
     # If source not set use defaults.
     if [ "$(get_option SOURCE)" = "local" -o -z "$SOURCE_DONE" ]; then
         copy_rootfs
-        . /etc/default/live.conf
-        # Disable autologin and remove motd from live image.
-        if [ -n "$SYSTEMD_INIT" ]; then
-            rm -f $TARGETDIR/etc/systemd/system/getty@.service
-        else
-            sed -e "s,-a $USERNAME,,g" -i $TARGETDIR/etc/sv/agetty-tty1/run
-        fi
         rm -f $TARGETDIR/etc/motd
+        rm -f $TARGETDIR/etc/issue
         # Remove live user.
         echo "Removing $USERNAME live user from targetdir ..." >$LOG
         chroot $TARGETDIR userdel -r $USERNAME >$LOG 2>&1