-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Description
File grub.cfg:
if any_exists ${isopath}/debian/debian-*.iso ${isopath}/debian/mini.iso; then
...
fi
File inc-debian.cfg:
function add_menu {
...
# Reset 'isoname' variable, because it contains the previous value
# and so the test if [ "$isoname" != "" ] will fail when I have live and dvd together
# and the menuentries will be doubled
isoname=""
regexp \
--set 1:isoname \
....
"^${isopath}/debian/(debian-live- ...
if [ "$isoname" != "" ]; then
menuentry "Debian Live " ... {
...
}
fi
# Reset 'isoname' variable, because it contains the previous value
# and so the test if [ "$isoname" != "" ] will fail when I have live and dvd together
# and the menuentries will be doubled
isoname=""
regexp --set 1:isoname "^${isopath}/debian/(debian-.+DVD.+\.iso)\$" "${isofile}"
if [ "$isoname" != "" ]; then
# debian-13.0.0-amd64-DVD-1.iso
menuentry "${isoname}" "${isofile}" "${isoname}" --class debian {
set isofile=$2
set isoname=$3
use "${isoname}"
linux "$isopath"/debian/hd-media/gtk/vmlinuz
initrd "$isopath"/debian/hd-media/gtk/initrd.gz
}
fi
}
for_each_sorted add_menu "$isopath"/debian/debian-*.iso
if [ -e "$isopath/debian/mini.iso" ]; then
...
Files vmlinuz/initrd.gz are in directory 'hd-media':
hd-media root
Source:
4.4.1. Hard disk installer booting from Linux using GRUB
Problem and solution:
The internal files "vmlinuz/initrd" of a debian-DVD.iso cannot be used with the classic commands:
- linux (loop)/.../vmlinuz
- initrd (loop)/.../initrd
'hd-media/vmlinuz' and 'hd-media/initrd' will look for external debian isos into partitions, they must end with '.iso':
Metadata
Metadata
Assignees
Labels
No labels

