Fedora & RHEL: fix slow loading mpt3sas.
Credit: @mdiepart from #282 Closes #282 #262 Fix variable export before chroot Credit: @mdiepart from #282 remind user to enable multi-disk support NixOS: handle installation failure wrt encrypted boot pool Closes #279 Signed-off-by: Maurice Zhou <jasper@apvc.uk>
This commit is contained in:
committed by
George Melikov
parent
c53d8efe03
commit
2aa4040743
@@ -110,7 +110,7 @@ System Configuration
|
|||||||
INST_UUID=$INST_UUID
|
INST_UUID=$INST_UUID
|
||||||
INST_ID=$INST_ID
|
INST_ID=$INST_ID
|
||||||
INST_VDEV=$INST_VDEV
|
INST_VDEV=$INST_VDEV
|
||||||
DISK=$DISK" > /mnt/root/chroot
|
DISK=\"$DISK\"" > /mnt/root/chroot
|
||||||
arch-chroot /mnt bash --login
|
arch-chroot /mnt bash --login
|
||||||
|
|
||||||
#. Source variables::
|
#. Source variables::
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ for pacman integration::
|
|||||||
exit
|
exit
|
||||||
rm /etc/sudoers.d/00_nobody
|
rm /etc/sudoers.d/00_nobody
|
||||||
|
|
||||||
|
If multi-disk setup is used, enable multi-disk
|
||||||
|
support inside ``/etc/bieaz.cfg``.
|
||||||
|
|
||||||
Supply password with SSH
|
Supply password with SSH
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -251,3 +251,6 @@ System Installation
|
|||||||
|
|
||||||
dnf --installroot=/mnt copr enable -y m0p/bieaz
|
dnf --installroot=/mnt copr enable -y m0p/bieaz
|
||||||
dnf --installroot=/mnt install -y bieaz python3-dnf-plugin-rozb3
|
dnf --installroot=/mnt install -y bieaz python3-dnf-plugin-rozb3
|
||||||
|
|
||||||
|
If multi-disk setup is used, enable multi-disk
|
||||||
|
support inside ``/mnt/etc/bieaz.cfg``.
|
||||||
|
|||||||
@@ -31,6 +31,12 @@ System Configuration
|
|||||||
|
|
||||||
echo 'add_dracutmodules+=" zfs "' > /mnt/etc/dracut.conf.d/zfs.conf
|
echo 'add_dracutmodules+=" zfs "' > /mnt/etc/dracut.conf.d/zfs.conf
|
||||||
|
|
||||||
|
#. Force load mpt3sas module if used::
|
||||||
|
|
||||||
|
if grep -q mpt3sas /proc/modules; then
|
||||||
|
echo 'forced_drivers+=" mpt3sas "' > /mnt/etc/dracut.conf.d/zfs.conf
|
||||||
|
fi
|
||||||
|
|
||||||
#. Enable timezone sync::
|
#. Enable timezone sync::
|
||||||
|
|
||||||
hwclock --systohc
|
hwclock --systohc
|
||||||
@@ -84,7 +90,7 @@ System Configuration
|
|||||||
INST_ID=$INST_ID
|
INST_ID=$INST_ID
|
||||||
unalias -a
|
unalias -a
|
||||||
INST_VDEV=$INST_VDEV
|
INST_VDEV=$INST_VDEV
|
||||||
DISK=$DISK" > /mnt/root/chroot
|
DISK=\"$DISK\"" > /mnt/root/chroot
|
||||||
arch-chroot /mnt bash --login
|
arch-chroot /mnt bash --login
|
||||||
|
|
||||||
#. Source variables::
|
#. Source variables::
|
||||||
|
|||||||
@@ -36,6 +36,17 @@ of declaratively configuring the system.
|
|||||||
users.users.root.initialHashedPassword = "${INST_ROOT_PASSWD}";
|
users.users.root.initialHashedPassword = "${INST_ROOT_PASSWD}";
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#. If boot pool encryption is used and installation fails with::
|
||||||
|
|
||||||
|
#mktemp: failed to create directory via template
|
||||||
|
#‘/mnt/tmp.coRUoqzl1P/initrd-secrets.XXXXXXXXXX’: No such file or directory
|
||||||
|
#failed to create initrd secrets: No such file or directory
|
||||||
|
|
||||||
|
This is `a bug <https://github.com/NixOS/nixpkgs/issues/157989>`__.
|
||||||
|
Complete the installation by executing::
|
||||||
|
|
||||||
|
nixos-enter --root /mnt -- nixos-rebuild boot
|
||||||
|
|
||||||
System installation
|
System installation
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -266,3 +266,6 @@ System Installation
|
|||||||
|
|
||||||
dnf --installroot=/mnt copr enable -y m0p/bieaz
|
dnf --installroot=/mnt copr enable -y m0p/bieaz
|
||||||
dnf --installroot=/mnt install -y bieaz python3-dnf-plugin-rozb3
|
dnf --installroot=/mnt install -y bieaz python3-dnf-plugin-rozb3
|
||||||
|
|
||||||
|
If multi-disk setup is used, enable multi-disk
|
||||||
|
support inside ``/mnt/etc/bieaz.cfg``.
|
||||||
|
|||||||
@@ -31,6 +31,12 @@ System Configuration
|
|||||||
|
|
||||||
echo 'add_dracutmodules+=" zfs "' > /mnt/etc/dracut.conf.d/zfs.conf
|
echo 'add_dracutmodules+=" zfs "' > /mnt/etc/dracut.conf.d/zfs.conf
|
||||||
|
|
||||||
|
#. Force load mpt3sas module if used::
|
||||||
|
|
||||||
|
if grep -q mpt3sas /proc/modules; then
|
||||||
|
echo 'forced_drivers+=" mpt3sas "' > /mnt/etc/dracut.conf.d/zfs.conf
|
||||||
|
fi
|
||||||
|
|
||||||
#. Interactively set locale, keymap, timezone, hostname and root password::
|
#. Interactively set locale, keymap, timezone, hostname and root password::
|
||||||
|
|
||||||
rm -f /mnt/etc/localtime
|
rm -f /mnt/etc/localtime
|
||||||
@@ -80,7 +86,7 @@ System Configuration
|
|||||||
TERM=xterm
|
TERM=xterm
|
||||||
INST_VDEV=$INST_VDEV
|
INST_VDEV=$INST_VDEV
|
||||||
INST_VDEV=$INST_VDEV
|
INST_VDEV=$INST_VDEV
|
||||||
DISK=$DISK" > /mnt/root/chroot
|
DISK=\"$DISK\"" > /mnt/root/chroot
|
||||||
arch-chroot /mnt bash --login
|
arch-chroot /mnt bash --login
|
||||||
|
|
||||||
#. Source variables::
|
#. Source variables::
|
||||||
|
|||||||
Reference in New Issue
Block a user