diff options
author | David P <megver83@openmailbox.org> | 2017-09-29 14:18:19 -0300 |
---|---|---|
committer | David P <megver83@openmailbox.org> | 2017-09-29 14:18:19 -0300 |
commit | f5d62fdcd4a6d351fa25af3b3e443ba4de67a802 (patch) | |
tree | da3bb909024f145454fb7ff460931bbb8c4311af /configs/talking-parabola-openrc/root-image/root/customize_root_image.sh | |
parent | 50a0dc41d6edbe36d081bcd0fab7d79f2a0d116a (diff) |
Added configs/profile-openrc
Diffstat (limited to 'configs/talking-parabola-openrc/root-image/root/customize_root_image.sh')
-rwxr-xr-x | configs/talking-parabola-openrc/root-image/root/customize_root_image.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configs/talking-parabola-openrc/root-image/root/customize_root_image.sh b/configs/talking-parabola-openrc/root-image/root/customize_root_image.sh new file mode 100755 index 0000000..4ff8528 --- /dev/null +++ b/configs/talking-parabola-openrc/root-image/root/customize_root_image.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e -u + +sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen +locale-gen + +ln -sf /usr/share/zoneinfo/UTC /etc/localtime + +usermod -s /usr/bin/zsh root +cp -aT /etc/skel/ /root/ + +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 +chmod 440 /etc/sudoers.d/g_wheel + +sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist + +systemctl enable multi-user.target pacman-init.service choose-mirror.service livecd-alsa-unmuter.service brltty.service + +sed -i "s/_DATE_/${iso_version}/" /etc/motd |