summaryrefslogtreecommitdiff
path: root/configs/profile/root-image
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2017-09-25 02:58:07 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2017-11-17 18:16:07 -0500
commit51e86db625adefad1541438b8226c1c8ab170745 (patch)
treea6d32bd99139b1f8ba6ea3d028fc37c76c0c7b51 /configs/profile/root-image
parentcfb9207ead40dc9b12e37578fab2641f213b3640 (diff)
allow in-tree build without parabolaiso package
Diffstat (limited to 'configs/profile/root-image')
-rwxr-xr-xconfigs/profile/root-image/root/customize_root_image.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/profile/root-image/root/customize_root_image.sh b/configs/profile/root-image/root/customize_root_image.sh
index 9c980f1..2c677a6 100755
--- a/configs/profile/root-image/root/customize_root_image.sh
+++ b/configs/profile/root-image/root/customize_root_image.sh
@@ -7,9 +7,10 @@ locale-gen
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
-usermod -s /usr/bin/zsh root
+usermod -s /usr/bin/zsh root 2> /dev/null
cp -aT /etc/skel/ /root/
+[ -n "$(id parabola 2> /dev/null)" ] && userdel -r parabola 2> /dev/null
useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh parabola
chmod 750 /etc/sudoers.d