diff --git a/setup.sh b/setup.sh index 888ef5d..91cf92e 100644 --- a/setup.sh +++ b/setup.sh @@ -284,7 +284,7 @@ function mount_system () { } function copy_zpool_cache () { - #1.9 + #1.8 mkdir -p '/mnt/etc/zfs' zpool set 'cachefile=/etc/zfs/'"${zpool_name}"'.cache' "${zpool_name}" } @@ -304,7 +304,7 @@ function pacman_dont_check_space () { } function install_archlinux () { - #1.10 + #1.9 pacman_dl_parallel pacman_dont_check_space pacstrap /mnt \ @@ -331,7 +331,7 @@ function install_archlinux () { } function gen_fstab () { - #1.11 + #1.10 genfstab -U /mnt | grep -v "${zpool_name}" | tr -s '\n' | sed -r -e 's/\/mnt//' -e '/./,$!d' > '/mnt/etc/fstab' } @@ -344,7 +344,7 @@ EOF } function set_hostname () { - #1.12 + #1.11 declare new_hostname install_pkgs 'pwgen' new_hostname="$(pwgen --no-numerals --no-capitalize --ambiguous 8)" @@ -353,7 +353,7 @@ function set_hostname () { } function set_locale () { - #1.13 + #1.12 printf -- '%s\n' \ 'KEYMAP=de-latin1' \ 'FONT=Lat2-Terminus16' \ @@ -364,7 +364,7 @@ function set_locale () { } function add_zfs_hook_to_initramfs () { - #1.14 + #1.13 # Add zfs hook, remove fsck hook from initramfs. sed -ri \ -e 's'$'\x1''(HOOKS=)(.*?[\(| ])(filesystems)([\)| ][^\r\n\f]*)'$'\x1''\1\2zfs \3\4'$'\x1''g' \ @@ -379,7 +379,7 @@ function add_zfs_hook_to_initramfs () { } function set_initramfs_build_list () { - #1.15 + #1.14 # No need to build fallback initramfs, our new fallback is ZFS snapshots sed -ri \ -e '/^#/d' \ @@ -393,7 +393,7 @@ function set_initramfs_build_list () { } function add_zfs_files_to_new_os () { - #1.16 + #1.15 for zfs_file in '/etc/hostid' '/etc/zfs/zpool.cache' $([[ ! "${ARCHZBM_ZFSPROPS_NO_ENCRYPTION}" ]] && printf -- '%s' '/etc/zfs/'"${zpool_name}"'.key'); do rsync -av --itemize-changes {'','/mnt'}"${zfs_file}" done @@ -546,8 +546,7 @@ function paru_install () { } function configure_zfsbootmenu () { - #3.8 - #FIXME + #2.9 paru_install 'zfsbootmenu' mkdir -p '/etc/zfsbootmenu/posthooks.d' cat > '/etc/zfsbootmenu/config.yaml' <