From c6506aea235ba3a7260861a77d4aea9bdce475d2 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 15 Mar 2019 08:55:01 +0000 Subject: [PATCH] Remove sudo from commands run as root (and some DEBUG lines) --- LFS/master.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/LFS/master.sh b/LFS/master.sh index 9294637..a602589 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -462,10 +462,6 @@ build_Makefile() { # sed -e 's|^| |' \ -e 's|umount|@-sudo &|' \ -e 's|\$LFS|$(MOUNT_PT)|'` -#echo [DEBUG] -#echo devices=$devices -#echo teardown=$teardown -#echo teardownat=$teardownat # Drop in the main target 'all:' and the chapter targets with each sub-target # as a dependency. ( @@ -588,8 +584,8 @@ EOF if [ "$INITSYS" = systemd ]; then ( cat << EOF - sudo mkdir -pv \$(MOUNT_PT)/run/systemd/resolve - sudo cp -v /etc/resolv.conf \$(MOUNT_PT)/run/systemd/resolve + mkdir -pv \$(MOUNT_PT)/run/systemd/resolve + cp -v /etc/resolv.conf \$(MOUNT_PT)/run/systemd/resolve EOF ) >> $MKFILE