Skip to content

DebianDVD contribution #139

@Quit4944

Description

@Quit4944

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':

First step: quick-scan partitions:
Image

Second step: full-scan partitions:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions