hibernate on first swap device

This commit is contained in:
SArpnt 2024-01-05 00:47:45 -05:00
parent d5eaafcde7
commit f10af3f6ec
Signed by: SArpnt
SSH Key Fingerprint: SHA256:wyRI40FXp6te9QA9r2OFJf+DtCZQmqZFNTj7EV6aMDA
2 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ begin
# TODO
set -a packages mesa lib32-mesa
# finerprint reader
# fingerprint reader
# TODO
@ -140,11 +140,11 @@ end
# TODO nvidia kernel parameter
cat /etc/default/grub | sed "
s/\$RESUME\$/$(
s/\\\$RESUME\\\$/"(
if test (count $swapdevice) -gt 0
echo resume=$swapdevice
echo " resume=$swapdevice[1]" # TODO pick hibernate device
end
)/
)"/
" >/etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
@ -169,7 +169,7 @@ echo "this can be any text and is usually used to display the name of the user i
set -l nickname (ask $user)
useradd -m -G games,realtime,wheel -c $nickname $user
passwd $user
passwd $user # TODO this only takes in one character for some reason? fix it
if not pacman -Q paru &> /dev/null
set -l paru (runuser $user --session-command "mktemp -d")

Binary file not shown.