Remove sudo from commands run as root (and some DEBUG lines)

This commit is contained in:
Pierre Labastie 2019-03-15 08:55:01 +00:00
parent a659e46082
commit c6506aea23

View file

@ -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