Added root= parameter for zfs

This commit is contained in:
oddlama 2021-05-30 21:13:27 +02:00
parent 053f7b90d0
commit 0ca4967160
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
3 changed files with 11 additions and 6 deletions

View File

@ -8,7 +8,7 @@ edited by hand if desired. An example configuration is provided with the reposit
1. Download a copy or clone this repo
1. Run `./configure` and save your configuration
1. When using encryption, export your desired key with `export GENTOO_INSTALL_ENCRYPTION_KEY="mypassword"`
1. When using encryption, export your desired key with `export GENTOO_INSTALL_ENCRYPTION_KEY='mypassword'`
1. Run installation using `./install`
Every option is explained in detail in `gentoo.conf.example` and in the help menu popups in the configurator.

4
TODO
View File

@ -1,5 +1 @@
- zfs support
- start systemd services
- create pool
- enable zstd
- zfs selector dracut

View File

@ -123,6 +123,8 @@ function generate_initramfs() {
&& modules+=("crypt crypt-gpg")
[[ $USED_BTRFS == "true" ]] \
&& modules+=("btrfs")
[[ $USED_ZFS == "true" ]] \
&& modules+=("zfs")
local kver
kver="$(readlink /usr/src/linux)" \
@ -144,7 +146,14 @@ function generate_initramfs() {
}
function get_cmdline() {
echo -n "rd.vconsole.keymap=$KEYMAP_INITRAMFS ${DISK_DRACUT_CMDLINE[*]} root=UUID=$(get_blkid_uuid_for_id "$DISK_ID_ROOT")"
local root_line
if [[ $USED_ZFS == "true" ]]; then
root_line="root=zfs:AUTO"
else
root_line="root=UUID=$(get_blkid_uuid_for_id "$DISK_ID_ROOT")"
fi
echo -n "rd.vconsole.keymap=$KEYMAP_INITRAMFS ${DISK_DRACUT_CMDLINE[*]} $root_line"
}
function install_kernel_efi() {