aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAwnrt <roman.levikoff@gmail.com>2024-03-30 22:07:26 +0300
committerAwnrt <roman.levikoff@gmail.com>2024-03-30 22:07:26 +0300
commit9aa91789a16b74b0a42139d89f5f7131a712d6ac (patch)
tree301ebd712b4c12ca6f391837fae11c52b277a27d
parente49bab21faa3b0e3344af3b62273767980102d74 (diff)
root uuid hardcode into grub
-rwxr-xr-xpost_chroot.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/post_chroot.sh b/post_chroot.sh
index a061f4d..d9058c1 100755
--- a/post_chroot.sh
+++ b/post_chroot.sh
@@ -35,6 +35,10 @@ rc-update add connmand
pacman -S intel-ucode --noconfirm
+SMFSUWER=$(blkid -s PARTUUID -o value /dev/$root_drive)
+POWERSMFSUWER='GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet options root='$SMFSUWER' rw nvidia-drm.modeset=1 intel_iommu=on"'
+sed -i "s/GRUB_CMDLINE_LINUX_DEF\(.*\)/$POWERSMFSUWER/g" /etc/default/grub
+
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S linux-headers --noconfirm