hibernate on first swap device
This commit is contained in:
parent
d5eaafcde7
commit
f10af3f6ec
|
@ -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")
|
||||
|
|
BIN
overlay.tar
BIN
overlay.tar
Binary file not shown.
Loading…
Reference in New Issue