* Latest Amazon Linux enables 64bid when creating ext4 partitions, which is incompatible with syslinux/extlinux bootloader.  Explicitly disable 64bit support, as it's highly unlikely we'll need a boot volume >16 TiB.
* update-extlinux.conf - switch kernel default to 'virt', as 'hardened' no longer exists.
This commit is contained in:
Jake Buchholz 2018-12-02 19:38:49 -08:00 committed by Mike Crute
parent 5a06b6d880
commit 013c57122a
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ make_filesystem() {
local device="$1" # target device path
local target="$2" # mount target
mkfs.ext4 "$device"
mkfs.ext4 -O ^64bit "$device"
e2label "$device" /
mount "$device" "$target"
}
@ -187,7 +187,7 @@ setup_extlinux() {
-e "s|^[# ]*(default_kernel_opts)=.*|\1=\"console=ttyS0 console=tty0\"|" \
-e "s|^[# ]*(serial_port)=.*|\1=ttyS0|" \
-e "s|^[# ]*(modules)=.*|\1=sd-mod,usb-storage,ext4|" \
-e "s|^[# ]*(default)=.*|\1=hardened|" \
-e "s|^[# ]*(default)=.*|\1=virt|" \
-e "s|^[# ]*(timeout)=.*|\1=1|" \
"$target"/etc/update-extlinux.conf
}