Fedora: create bpool with compatibility property
update Arch Linux live loader entries Signed-off-by: Maurice Zhou <jasper@apvc.uk>
This commit is contained in:
committed by
George Melikov
parent
5717d7bef7
commit
6fcf8e76be
@@ -7,27 +7,52 @@ ls $ISO_PATH 1> /dev/null
|
|||||||
ESP_UUID=$(blkid -s UUID -o value $(df --output=source ${ISO_PATH} | tail -n +2))
|
ESP_UUID=$(blkid -s UUID -o value $(df --output=source ${ISO_PATH} | tail -n +2))
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
submenu 'archiso' {
|
submenu 'archiso' {
|
||||||
configfile \$prefix/archiso.cfg
|
rmmod tpm
|
||||||
}
|
|
||||||
EOF
|
|
||||||
tee /boot/grub/archiso.cfg 1> /dev/null <<EOF
|
|
||||||
insmod search_fs_uuid
|
insmod search_fs_uuid
|
||||||
set isorootuuid=$ESP_UUID
|
set isorootuuid=$ESP_UUID
|
||||||
search --fs-uuid --no-floppy --set=isopart \$isorootuuid
|
search --fs-uuid --no-floppy --set=isopart \$isorootuuid
|
||||||
set isopath=$ISO_REL
|
set isopath=$ISO_REL
|
||||||
|
configfile \$prefix/archiso.cfg
|
||||||
EOF
|
EOF
|
||||||
ISO_NUM=0
|
ISO_NUM=0
|
||||||
for isofile in $ISO_PATH/archlinux-*.iso; do
|
for isofile in $ISO_PATH/archlinux-*.iso; do
|
||||||
if [ "$ISO_NUM" -gt 300 ]; then break; fi
|
if [ "$ISO_NUM" -gt 300 ]; then break; fi
|
||||||
isoname=${isofile##*/}
|
isoname=${isofile##*/}
|
||||||
tee -a /boot/grub/archiso.cfg 1> /dev/null <<EOF
|
cat <<EOF
|
||||||
menuentry "$isoname" {
|
submenu "$isoname" {
|
||||||
|
menuentry "Arch Linux install medium" {
|
||||||
loopback loop0 (\$isopart)\$isopath/$isoname
|
loopback loop0 (\$isopart)\$isopath/$isoname
|
||||||
linux (loop0)/arch/boot/x86_64/vmlinuz-linux earlymodules=loop img_dev=/dev/disk/by-uuid/\$isorootuuid img_loop=\$isopath/$isoname
|
linux (loop0)/arch/boot/x86_64/vmlinuz-linux \\
|
||||||
initrd (loop0)/arch/boot/intel-ucode.img (loop0)/arch/boot/amd-ucode.img (loop0)/arch/boot/x86_64/initramfs-linux.img
|
earlymodules=loop img_dev=/dev/disk/by-uuid/\$isorootuuid img_loop=\$isopath/$isoname
|
||||||
|
initrd (loop0)/arch/boot/intel-ucode.img
|
||||||
|
initrd (loop0)/arch/boot/amd-ucode.img
|
||||||
|
initrd (loop0)/arch/boot/x86_64/initramfs-linux.img
|
||||||
|
}
|
||||||
|
menuentry "Arch Linux install medium, Copy to RAM" {
|
||||||
|
loopback loop0 (\$isopart)\$isopath/$isoname
|
||||||
|
linux (loop0)/arch/boot/x86_64/vmlinuz-linux \\
|
||||||
|
earlymodules=loop img_dev=/dev/disk/by-uuid/\$isorootuuid img_loop=\$isopath/$isoname \\
|
||||||
|
copytoram
|
||||||
|
initrd (loop0)/arch/boot/intel-ucode.img
|
||||||
|
initrd (loop0)/arch/boot/amd-ucode.img
|
||||||
|
initrd (loop0)/arch/boot/x86_64/initramfs-linux.img
|
||||||
|
}
|
||||||
|
menuentry "Arch Linux install medium with speech" {
|
||||||
|
loopback loop0 (\$isopart)\$isopath/$isoname
|
||||||
|
linux (loop0)/arch/boot/x86_64/vmlinuz-linux \\
|
||||||
|
earlymodules=loop img_dev=/dev/disk/by-uuid/\$isorootuuid img_loop=\$isopath/$isoname \\
|
||||||
|
accessibility=on
|
||||||
|
initrd (loop0)/arch/boot/intel-ucode.img
|
||||||
|
initrd (loop0)/arch/boot/amd-ucode.img
|
||||||
|
initrd (loop0)/arch/boot/x86_64/initramfs-linux.img
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
ISO_NUM=$(( $ISO_NUM + 1 ))
|
ISO_NUM=$(( $ISO_NUM + 1 ))
|
||||||
done
|
done
|
||||||
|
cat <<EOF
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
# archiso kernel cmdline from
|
# archiso kernel cmdline from
|
||||||
# https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/configs/releng/efiboot/loader/entries/archiso-x86_64-linux.conf
|
# https://gitlab.archlinux.org/archlinux/archiso/-/tree/master/configs/releng/efiboot/loader/entries
|
||||||
|
|||||||
@@ -27,17 +27,7 @@ System Installation
|
|||||||
#. Create boot pool::
|
#. Create boot pool::
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-d -o feature@async_destroy=enabled \
|
-o compatibility=grub2 \
|
||||||
-o feature@bookmarks=enabled \
|
|
||||||
-o feature@embedded_data=enabled \
|
|
||||||
-o feature@empty_bpobj=enabled \
|
|
||||||
-o feature@enabled_txg=enabled \
|
|
||||||
-o feature@extensible_dataset=enabled \
|
|
||||||
-o feature@filesystem_limits=enabled \
|
|
||||||
-o feature@hole_birth=enabled \
|
|
||||||
-o feature@large_blocks=enabled \
|
|
||||||
-o feature@lz4_compress=enabled \
|
|
||||||
-o feature@spacemap_histogram=enabled \
|
|
||||||
-o ashift=12 \
|
-o ashift=12 \
|
||||||
-o autotrim=on \
|
-o autotrim=on \
|
||||||
-O acltype=posixacl \
|
-O acltype=posixacl \
|
||||||
|
|||||||
@@ -83,17 +83,7 @@ In test installation, GRUB took nearly 2 minutes to decrypt LUKS container.
|
|||||||
#. Recreate boot pool with mappers as vdev::
|
#. Recreate boot pool with mappers as vdev::
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-d -o feature@async_destroy=enabled \
|
-o compatibility=grub2 \
|
||||||
-o feature@bookmarks=enabled \
|
|
||||||
-o feature@embedded_data=enabled \
|
|
||||||
-o feature@empty_bpobj=enabled \
|
|
||||||
-o feature@enabled_txg=enabled \
|
|
||||||
-o feature@extensible_dataset=enabled \
|
|
||||||
-o feature@filesystem_limits=enabled \
|
|
||||||
-o feature@hole_birth=enabled \
|
|
||||||
-o feature@large_blocks=enabled \
|
|
||||||
-o feature@lz4_compress=enabled \
|
|
||||||
-o feature@spacemap_histogram=enabled \
|
|
||||||
-o ashift=12 \
|
-o ashift=12 \
|
||||||
-o autotrim=on \
|
-o autotrim=on \
|
||||||
-O acltype=posixacl \
|
-O acltype=posixacl \
|
||||||
|
|||||||
Reference in New Issue
Block a user