Added root= parameter for zfs
This commit is contained in:
parent
053f7b90d0
commit
0ca4967160
|
@ -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. Download a copy or clone this repo
|
||||||
1. Run `./configure` and save your configuration
|
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`
|
1. Run installation using `./install`
|
||||||
|
|
||||||
Every option is explained in detail in `gentoo.conf.example` and in the help menu popups in the configurator.
|
Every option is explained in detail in `gentoo.conf.example` and in the help menu popups in the configurator.
|
||||||
|
|
4
TODO
4
TODO
|
@ -1,5 +1 @@
|
||||||
- zfs support
|
|
||||||
- start systemd services
|
|
||||||
- create pool
|
|
||||||
- enable zstd
|
|
||||||
- zfs selector dracut
|
- zfs selector dracut
|
||||||
|
|
|
@ -123,6 +123,8 @@ function generate_initramfs() {
|
||||||
&& modules+=("crypt crypt-gpg")
|
&& modules+=("crypt crypt-gpg")
|
||||||
[[ $USED_BTRFS == "true" ]] \
|
[[ $USED_BTRFS == "true" ]] \
|
||||||
&& modules+=("btrfs")
|
&& modules+=("btrfs")
|
||||||
|
[[ $USED_ZFS == "true" ]] \
|
||||||
|
&& modules+=("zfs")
|
||||||
|
|
||||||
local kver
|
local kver
|
||||||
kver="$(readlink /usr/src/linux)" \
|
kver="$(readlink /usr/src/linux)" \
|
||||||
|
@ -144,7 +146,14 @@ function generate_initramfs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_cmdline() {
|
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() {
|
function install_kernel_efi() {
|
||||||
|
|
Loading…
Reference in New Issue