Add hibernation instructions
Use ${DISK}-swap for dm name
Update archlinux live image to May 2021
Other minor improvements
reusable command for mirroring ESP
use glob for initrd keys
apply hostname to live system; use wildcard for network config
separate persistent swap and hibernation
secureboot; temp esp partition
capital letters
Secure Boot needs to be re-enabled
wording: save and reboot
wording, spurious white space
double sharp sign for comment
updates for GRUB tips
reinstall GRUB after entering system
Signed-off-by: Maurice Zhou <ja@apvc.uk>
do not use /dev/sda as example
fix formatting; add notes
update info regarding encryption
use internal links; tweak indentation
other kernel variants
install sudo before editing /etc/sudoers
use colon
use mkinitcpio for initrd generation
only use ~/.local/bin if exist
dependencies for building site
Signed-off-by: Maurice Zhou <ja@apvc.uk>
This commit is contained in:
committed by
Richard Laager
parent
45d984ebdb
commit
1fd8de8b18
File diff suppressed because it is too large
Load Diff
@@ -166,8 +166,8 @@ zfs-dkms package
|
|||||||
pacman -Sy $INST_LINVAR $INST_LINVAR-headers zfs-dkms
|
pacman -Sy $INST_LINVAR $INST_LINVAR-headers zfs-dkms
|
||||||
|
|
||||||
If pacman output contains the following error message,
|
If pacman output contains the following error message,
|
||||||
then the kernel needs a downgrade, or you can try
|
then the kernel needs a `downgrade <#zfs-dkms-compatible-kernel>`__,
|
||||||
``zfs-dkms-git`` package::
|
or you can try ``zfs-dkms-git`` package::
|
||||||
|
|
||||||
(3/4) Install DKMS modules
|
(3/4) Install DKMS modules
|
||||||
==> dkms install --no-depmod -m zfs -v 2.0.4 -k 5.12.0-rc5-1-git-00030-gd19cc4bfbff1
|
==> dkms install --no-depmod -m zfs -v 2.0.4 -k 5.12.0-rc5-1-git-00030-gd19cc4bfbff1
|
||||||
@@ -188,52 +188,55 @@ zfs-dkms package
|
|||||||
To update kernel, go throught the above procedure
|
To update kernel, go throught the above procedure
|
||||||
again.
|
again.
|
||||||
|
|
||||||
#. Install zfs-dkms compatible kernel
|
zfs-dkms compatible kernel
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
If the currently installed kernel is not
|
If the installed kernel is not
|
||||||
compatible with ZFS, a kernel downgrade
|
compatible with ZFS, a kernel downgrade
|
||||||
is needed.
|
is needed.
|
||||||
|
|
||||||
#. Choose kernel variant. Available variants are:
|
#. Choose kernel variant. Available variants are:
|
||||||
|
|
||||||
* linux
|
* linux
|
||||||
* linux-lts
|
* linux-lts
|
||||||
|
* linux-zen
|
||||||
|
* linux-hardened
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
INST_LINVAR=linux
|
INST_LINVAR=linux
|
||||||
|
|
||||||
#. Install kernels available when the package was built. Check build date::
|
#. Install kernels available when the package was built. Check build date::
|
||||||
|
|
||||||
DKMS_DATE=$(pacman -Syi zfs-dkms \
|
DKMS_DATE=$(pacman -Syi zfs-dkms \
|
||||||
| grep 'Build Date' \
|
| grep 'Build Date' \
|
||||||
| sed 's/.*: //' \
|
| sed 's/.*: //' \
|
||||||
| LC_ALL=C xargs -i{} date -d {} -u +%Y/%m/%d)
|
| LC_ALL=C xargs -i{} date -d {} -u +%Y/%m/%d)
|
||||||
|
|
||||||
#. Check kernel version::
|
#. Check kernel version::
|
||||||
|
|
||||||
INST_LINVER=$(curl https://archive.archlinux.org/repos/${DKMS_DATE}/core/os/x86_64/ \
|
INST_LINVER=$(curl https://archive.archlinux.org/repos/${DKMS_DATE}/core/os/x86_64/ \
|
||||||
| grep \"${INST_LINVAR}-'[0-9]' \
|
| grep \"${INST_LINVAR}-'[0-9]' \
|
||||||
| grep -v sig \
|
| grep -v sig \
|
||||||
| sed "s|.*$INST_LINVAR-||" \
|
| sed "s|.*$INST_LINVAR-||" \
|
||||||
| sed "s|-x86_64.*||")
|
| sed "s|-x86_64.*||")
|
||||||
|
|
||||||
#. Install compatible kernel and headers::
|
#. Install compatible kernel and headers::
|
||||||
|
|
||||||
pacman -U \
|
pacman -U \
|
||||||
https://archive.archlinux.org/packages/l/${INST_LINVAR}/${INST_LINVAR}-${INST_LINVER}-x86_64.pkg.tar.zst \
|
https://archive.archlinux.org/packages/l/${INST_LINVAR}/${INST_LINVAR}-${INST_LINVER}-x86_64.pkg.tar.zst \
|
||||||
https://archive.archlinux.org/packages/l/${INST_LINVAR}-headers/${INST_LINVAR}-headers-${INST_LINVER}-x86_64.pkg.tar.zst
|
https://archive.archlinux.org/packages/l/${INST_LINVAR}-headers/${INST_LINVAR}-headers-${INST_LINVER}-x86_64.pkg.tar.zst
|
||||||
|
|
||||||
#. Install zfs-dkms::
|
#. Install zfs-dkms::
|
||||||
|
|
||||||
pacman -Sy zfs-dkms
|
pacman -Sy zfs-dkms
|
||||||
|
|
||||||
#. Hold kernel package from updates::
|
#. Hold kernel package from updates::
|
||||||
|
|
||||||
sed -i 's/#IgnorePkg/IgnorePkg/' /etc/pacman.conf
|
sed -i 's/#IgnorePkg/IgnorePkg/' /etc/pacman.conf
|
||||||
sed -i "/^IgnorePkg/ s/$/ ${INST_LINVAR} ${INST_LINVAR}-headers/" /etc/pacman.conf
|
sed -i "/^IgnorePkg/ s/$/ ${INST_LINVAR} ${INST_LINVAR}-headers/" /etc/pacman.conf
|
||||||
|
|
||||||
Kernel must be manually updated, see above.
|
Kernel must be manually updated, see above.
|
||||||
|
|
||||||
Live Image
|
Live Image
|
||||||
----------
|
----------
|
||||||
|
|||||||
Reference in New Issue
Block a user