Create live-image for Grit OS

customize_root_image.sh 640B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -e -u
  3. sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
  4. locale-gen
  5. ln -sf /usr/share/zoneinfo/UTC /etc/localtime
  6. usermod -s /usr/bin/zsh root
  7. cp -aT /etc/skel/ /root/
  8. useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh arch
  9. chmod 750 /etc/sudoers.d
  10. chmod 440 /etc/sudoers.d/g_wheel
  11. sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
  12. sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
  13. systemctl enable pacman-init.service choose-mirror.service lightdm
  14. #systemctl set-default multi-user.target
  15. systemctl set-default graphical.target