summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-11-21 13:13:25 -0600
committerCraig Jennings <c@cjennings.net>2024-11-21 13:13:25 -0600
commitc85f9c429713a5b97f5b24bddffa4cd33b181225 (patch)
treed5febbae65fb72068d77108c75bd06819dae9d1e
parent3e975ec4bf995092a9aa1ba2200631efd4c103c5 (diff)
changed silent_boot to boot_ux + disabled as prep for test setup
-rwxr-xr-xarchsetup60
1 files changed, 36 insertions, 24 deletions
diff --git a/archsetup b/archsetup
index 0c88a12..1cce6b3 100755
--- a/archsetup
+++ b/archsetup
@@ -885,10 +885,10 @@ supplemental_software() {
aur_install zsh-fast-syntax-highlighting-git # Optimized and extended zsh-syntax-highlighting
}
-### Boot-Related
-silent_boot() {
+### Boot-UX
+boot_ux() {
- action="Silent Boot" && display "title" "$action"
+ action="Boot UX" && display "title" "$action"
action="removing distro and date/time from initial screen" && display "task" "$action"
(cat /dev/null >/etc/issue) || error "error" "$action" "$?"
@@ -910,39 +910,51 @@ silent_boot() {
[ -f $servicefile ] && echo "StandardOutput=null" >>$servicefile && \
echo "StandardError=journal+console" >>$servicefile
- action="removing hostname from login prompt" && display "task" "$action"
- sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/getty@.service \
- || error "error" "$action" "$?"
- sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/container-getty@.service \
- || error "error" "$action" "$?"
- sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/console-getty.service \
- || error "error" "$action" "$?"
+ # action="removing hostname from login prompt" && display "task" "$action"
+ # sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/getty@.service \
+ # || error "error" "$action" "$?"
+ # sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/container-getty@.service \
+ # || error "error" "$action" "$?"
+ # sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/console-getty.service \
+ # || error "error" "$action" "$?"
action="silencing the unneeded and chatty watchdog module" && display "task" "$action"
echo "blacklist iTCO_wdt" >/etc/modprobe.d/nowatchdog.conf || error "error" "$action" "$?"
- # SYSTEMD BOOT: eliminate timeout and silence boot text
- if [ -f /boot/loader/loader.conf ]; then
- action="eliminating timeout and silencing boot test on systemd boot" && display "task" "$action"
- echo "timeout=0" >/boot/loader/loader.conf
-
- # the file in this location was named based on the time of the install, so we must use find to identify it.
- kernelfile=$(find /boot/loader/entries/ -name "*.conf")
- # hush boot output via kernel parameters
- sed -i "/.*options root=PARTUUID.*/ s/$/quiet rd.systemd.show_status=auto rd.udev.log_level=2 nvme.noacpi=1 mem_sleep_default=deep nowatchdog/" "$kernelfile"
- fi
-
- # GRUB: reset timeouts and adjust log levels
+ # GRUB: reset timeouts, adjust log levels, larger menu for HiDPI screens, and show splashscreen
+ action="configuring boot menu for silence and bootsplash" && display "task" "$action"
if [ -f /etc/default/grub ]; then
action="resetting timeouts and adjusting log levels on grub boot" && display "task" "$action"
sed -i "s/.*GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/g" /etc/default/grub
sed -i "s/.*GRUB_DEFAULT=.*/GRUB_DEFAULT=0/g" /etc/default/grub
+ sed -i 's/.*GRUB_TERMINAL_OUTPUT=console/GRUB_TERMINAL_OUTPUT=gfxterm/' /etc/default/grub
+ sed -i 's/.*GRUB_GFXMODE=auto/GRUB_GFXMODE=1024x768/' /etc/default/grub
sed -i "s/.*GRUB_RECORDFAIL_TIMEOUT=.*/GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT/g" /etc/default/grub
- sed -i "s/.*GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"rw quiet loglevel=2 rd.systemd.show_status=auto rd.udev.log_level=2 nvme.noacpi=1 mem_sleep_default=deep nowatchdog\"/g" /etc/default/grub
+ sed -i "s/.*GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"rw loglevel=2 rd.systemd.show_status=auto rd.udev.log_level=2 nvme.noacpi=1 mem_sleep_default=deep nowatchdog quiet splash\"/g" /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg >> "$logfile" 2>&1 || error "error" "" "$?"
fi
+
+ # GDM
+ action="installing login manager and dependencies" && display "task" "$action"
+ pacman_install gdm
+ (systemctl enable gdm.service >> "$logfile" 2>&1) || error "error" "$action" "$?"
+
+ action="creating DWM entry for login manager" && display "task" "$action"
+ # Create DWM Entry for GDM
+ cat << EOF > /usr/share/xsessions/dwm.desktop
+[Desktop Entry]
+Encoding=UTF-8
+Name=dwm
+Comment=Dynamic window manager
+Exec=dwm
+Icon=dwm
+Type=XSession
+EOF
+
+
}
+
### Outro
outro() {
@@ -987,7 +999,7 @@ dwm # window manager
desktop_environment # commonly used applications
developer_workstation # development tools and utilities
supplemental_software # everything else
-# silent_boot # make booting a bit less noisy
+# boot_ux # make booting visually nicer
outro # take end stats; show summary