|
|
@ -352,10 +352,20 @@ then
|
|
|
|
[ "${ZFS}" = '1' ] && print_warning 1 'add "dozfs" for ZFS volume management support'
|
|
|
|
[ "${ZFS}" = '1' ] && print_warning 1 'add "dozfs" for ZFS volume management support'
|
|
|
|
[ "${ZFS}" = '1' ] && print_warning 1 'add either "real_root=ZFS" (bootfs autodetection) or "real_root=ZFS=<dataset>" to boot from a ZFS dataset'
|
|
|
|
[ "${ZFS}" = '1' ] && print_warning 1 'add either "real_root=ZFS" (bootfs autodetection) or "real_root=ZFS=<dataset>" to boot from a ZFS dataset'
|
|
|
|
[ "${ISCSI}" = '1' ] && print_warning 1 'add at least "iscsi_initiatorname=<initiator name> iscsi_target=<target name> and iscsi_address=<target ip>" for iscsi support'
|
|
|
|
[ "${ISCSI}" = '1' ] && print_warning 1 'add at least "iscsi_initiatorname=<initiator name> iscsi_target=<target name> and iscsi_address=<target ip>" for iscsi support'
|
|
|
|
if [ `grep 'CONFIG_EXT[0-9]_FS=' "${KERNEL_DIR}"/.config | wc -l` -ge 2 ]; then
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$(file --brief --mime-type "${KERNEL_CONFIG}")" == application/x-gzip ]]; then
|
|
|
|
|
|
|
|
# Support --kernel-config=/proc/config.gz, mainly
|
|
|
|
|
|
|
|
CONFGREP=zgrep
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
CONFGREP=grep
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ `${CONFGREP} 'CONFIG_EXT[0-9]_FS=' "${KERNEL_CONFIG}" | wc -l` -ge 2 ]; then
|
|
|
|
print_warning 1 'With support for several ext* filesystems around it may be needed to'
|
|
|
|
print_warning 1 'With support for several ext* filesystems around it may be needed to'
|
|
|
|
print_warning 1 'add "rootfstype=ext3" or "rootfstype=ext4"'
|
|
|
|
print_warning 1 'add "rootfstype=ext3" or "rootfstype=ext4"'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unset CONFGREP
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
[ "${BOOTRW}" != '' ] && mount -o remount,ro ${BOOTDIR}
|
|
|
|
[ "${BOOTRW}" != '' ] && mount -o remount,ro ${BOOTDIR}
|
|
|
|