about summary refs log tree commit diff
path: root/installer.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-10-17 10:58:06 +0200
committerJuan RP <xtraeme@voidlinux.eu>2015-10-17 10:58:06 +0200
commitf0722b06e5f2e3831b19114509ddfca70bcffee0 (patch)
tree873e48a54a47d21ba52e0347e211b5179325a009 /installer.sh.in
parentd3b527ec3d29023069ae35cb87798d04538b878f (diff)
downloadhrmpf-f0722b06e5f2e3831b19114509ddfca70bcffee0.tar.gz
hrmpf-f0722b06e5f2e3831b19114509ddfca70bcffee0.tar.xz
hrmpf-f0722b06e5f2e3831b19114509ddfca70bcffee0.zip
installer: remove liveuser from /etc/sudoers in local installation.
Close #43
Diffstat (limited to 'installer.sh.in')
-rw-r--r--installer.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/installer.sh.in b/installer.sh.in
index dd57f5a..290d5cd 100644
--- a/installer.sh.in
+++ b/installer.sh.in
@@ -856,6 +856,7 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
         # Remove live user.
         echo "Removing $USERNAME live user from targetdir ..." >$LOG
         chroot $TARGETDIR userdel -r $USERNAME >$LOG 2>&1
+        sed -i -e "/$USERNAME ALL=.*/d" $TARGETDIR/etc/sudoers
         DIALOG --title "Check $LOG for details" \
             --infobox "Rebuilding initramfs for target ..." 4 60
         echo "Rebuilding initramfs for target ..." >$LOG