|
|
|
@ -293,12 +293,14 @@ install_base() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# If root is on btrfs volume, amend mkinitcpio.conf
|
|
|
|
|
[[ -e /tmp/.btrfsroot ]] && sed -e '/^HOOKS=/s/\ fsck//g' -i ${MOUNTPOINT}/etc/mkinitcpio.conf && \
|
|
|
|
|
check_for_error "root on btrfs volume. amend mkinitcpio."
|
|
|
|
|
if [[ -e /tmp/.btrfsroot ]]; then
|
|
|
|
|
sed -e '/^HOOKS=/s/\ fsck//g' -e '/^MODULES=/s/"$/ btrfs"/g' -i ${MOUNTPOINT}/etc/mkinitcpio.conf
|
|
|
|
|
check_for_error "root on btrfs volume. Amend mkinitcpio."
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# If root is on nilfs2 volume, amend mkinitcpio.conf
|
|
|
|
|
[[ $(lsblk -lno FSTYPE,MOUNTPOINT | awk '/ \/mnt$/ {print $1}') == nilfs2 ]] && sed -e '/^HOOKS=/s/\ fsck//g' -i ${MOUNTPOINT}/etc/mkinitcpio.conf && \
|
|
|
|
|
check_for_error "root on nilfs2 volume. amend mkinitcpio."
|
|
|
|
|
check_for_error "root on nilfs2 volume. Amend mkinitcpio."
|
|
|
|
|
|
|
|
|
|
# add luks and lvm hooks as needed
|
|
|
|
|
([[ $LVM -eq 1 ]] && [[ $LUKS -eq 0 ]]) && { sed -i 's/block filesystems/block lvm2 filesystems/g' ${MOUNTPOINT}/etc/mkinitcpio.conf 2>$ERR; check_for_error "add lvm2 hook" $?; }
|
|
|
|
|