grubby/boot/isos.cfg.d/alpine.cfg

35 lines
907 B
INI

# Alpine Linux Grub config
set isopath_alpine="${isopath}/alpine"
export isopath_alpine
for isofile in ${isopath_alpine}/alpine-standard*.iso; do
if [ ! -e "$isofile" ]; then break; fi
submenu "Alpine Linux >" --class alpine {
for isofile in ${isopath_alpine}/alpine-standard*.iso; do
if [ ! -e "$isofile" ]; then break; fi
regexp \
--set 1:isoname \
--set 2:variant \
--set 3:version \
--set 4:arch \
"^${isopath_alpine}/(alpine-([^-]+)-([^-]+)-([^-]+)\.iso)\$" "${isofile}"
menuentry "Alpine Linux ${variant} ${version} ${arch}" "${isofile}" "${isoname}" --class alpine {
set isofile=$2
set isoname=$3
echo "Using ${isoname}..."
loopback loop $isofile
linux (loop)/boot/grsec initrd=/boot/grsec.gz iso-scan/filename=${isofile} alpine_dev=usbdisk:exfat modules=loop,cramfs,sd-mod,usb-storage
initrd (loop)/boot/grsec.gz
}
done
}
# kill for loop
break
done