From 3ac5c940ee2e9f2aaf866512d271e2b4c920c5e6 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 30 Nov 2014 14:23:00 +0000 Subject: [PATCH] [scripts] use systemctl set-default and discard type stderr output --- scripts/inner_chroot_script.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/inner_chroot_script.sh b/scripts/inner_chroot_script.sh index fddea2e..93f9de6 100755 --- a/scripts/inner_chroot_script.sh +++ b/scripts/inner_chroot_script.sh @@ -38,6 +38,8 @@ sd_disable() { systemctl --no-reload disable -f "${srv}${ext}" } +# Make sure that external Portage env vars are not set +unset PORTDIR PORTAGE_TMPDIR # create /proc if it doesn't exist # rsync doesn't copy it @@ -83,7 +85,7 @@ echo FONT=LatArCyrHeb-16 > /etc/vconsole.conf # since this comes without X, set the default target to multi-user.target # instead of graphical.target -sd_enable multi-user target +systemctl --no-reload set-default multi-user # remove SSH keys rm -rf /etc/ssh/*_key* @@ -145,8 +147,8 @@ eselect opengl set xorg-x11 &> /dev/null # touch /etc/asound.state touch /etc/asound.state -type -f update-pciids && update-pciids -type -f update-usbids && update-usbids +type -f update-pciids 2> /dev/null && update-pciids +type -f update-usbids 2> /dev/null && update-usbids echo -5 | etc-update mount -t proc proc /proc