Create rpool/ROOT dataset automatically, and supply password
automatically.
This commit is contained in:
parent
bae9e41741
commit
c6d037f95f
|
@ -408,10 +408,13 @@ function format_zfs_standard() {
|
||||||
"${extra_args[@]}" \
|
"${extra_args[@]}" \
|
||||||
rpool \
|
rpool \
|
||||||
"${devices[@]}" \
|
"${devices[@]}" \
|
||||||
|
<<< "$GENTOO_INSTALL_ENCRYPTION_KEY"
|
||||||
|| die "Could not create zfs pool on $devices_desc"
|
|| die "Could not create zfs pool on $devices_desc"
|
||||||
|
|
||||||
|
zfs create -o mountpoint=/ rpool/ROOT \
|
||||||
|
|| die "Could not create zfs dataset 'rpool/ROOT'"
|
||||||
zfs create -o mountpoint=/ rpool/ROOT/default \
|
zfs create -o mountpoint=/ rpool/ROOT/default \
|
||||||
|| die "Could not create zfs default dataset"
|
|| die "Could not create zfs dataset 'rpool/ROOT/default'"
|
||||||
zpool set bootfs=rpool/ROOT/default rpool \
|
zpool set bootfs=rpool/ROOT/default rpool \
|
||||||
|| die "Could not set zfs property bootfs on rpool"
|
|| die "Could not set zfs property bootfs on rpool"
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ function cache_lsblk_output() {
|
||||||
function get_device_by_ptuuid() {
|
function get_device_by_ptuuid() {
|
||||||
local ptuuid="${1,,}"
|
local ptuuid="${1,,}"
|
||||||
local dev
|
local dev
|
||||||
if [[ -n $CACHED_LSBLK_OUTPUT ]]; then
|
if [[ -v CACHED_LSBLK_OUTPUT ]]; then
|
||||||
dev="$CACHED_LSBLK_OUTPUT"
|
dev="$CACHED_LSBLK_OUTPUT"
|
||||||
else
|
else
|
||||||
dev="$(lsblk --all --path --pairs --output NAME,PTUUID,PARTUUID)" \
|
dev="$(lsblk --all --path --pairs --output NAME,PTUUID,PARTUUID)" \
|
||||||
|
|
Loading…
Reference in New Issue