mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-24 00:20:07 +00:00
install: support suspend
After making these changes to an existing system, rebuild grub and make
images.
# grub-mkconfig -o /boot/grub/grub.cfg
# mkinitcpio -p linux
# mkinitcpio -p linux-grsec
This commit is contained in:
parent
1086c99424
commit
b8a827504f
1 changed files with 2 additions and 2 deletions
|
|
@ -65,14 +65,14 @@ Add a key file to decrypt the volume and properly set the hooks.
|
|||
$ cryptsetup luksAddKey /dev/sda1 /crypto_keyfile.bin
|
||||
$ chmod 000 /crypto_keyfile.bin
|
||||
$ sed -i 's/^FILES=.*/FILES="\/crypto_keyfile.bin"/' /etc/mkinitcpio.conf
|
||||
$ sed -i 's/^HOOKS=.*/HOOKS="base udev autodetect modconf block keyboard encrypt lvm2 filesystems fsck"/' /etc/mkinitcpio.conf
|
||||
$ sed -i 's/^HOOKS=.*/HOOKS="base udev autodetect modconf block keyboard encrypt lvm2 resume filesystems fsck"/' /etc/mkinitcpio.conf
|
||||
$ mkinitcpio -p linux
|
||||
|
||||
Install GRUB.
|
||||
|
||||
$ pacman -S grub
|
||||
$ echo GRUB_ENABLE_CRYPTODISK=y >> /etc/default/grub
|
||||
$ sed -i 's/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="cryptdevice=\/dev\/sda1:lvm:allow-discards"/' /etc/default/grub
|
||||
$ sed -i 's/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="cryptdevice=\/dev\/sda1:lvm:allow-discards resume=\/dev\/mapper\/arch-swap"/' /etc/default/grub
|
||||
$ grub-mkconfig -o /boot/grub/grub.cfg
|
||||
$ grub-install /dev/sda
|
||||
$ chmod -R g-rwx,o-rwx /boot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue