fai-diskimage and /dev/loop0

"Schulz, Reiner" <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
Hi there

I am on my first steps with fai-diskimage from fai 5.8.4
I try to  to generate a debian 12 image to boot on vmware esxi

but grub ist installed on /dev/loop0 and in fstab "/" is set to /dev/loop0p1

so systemd-mount tries to mount /dev/loop0p1

what do i wrong? :)

cat disk_var.sh
SWAPLIST=${SWAPLIST:-""}
BOOT_DEVICE=${BOOT_DEVICE:-"/dev/loop0"}
ROOT_PARTITION=${ROOT_PARTITION:-/dev/loop0p2}
BOOT_PARTITION=${BOOT_PARTITION:-/dev/loop0p1}

In shell log the GRUB_PC/10-setup script output:

...
++ chroot /tmp/fai-diskimage.svkFCT grub-probe -tdrive -d /dev/loop0
+ GROOT='(hostdisk//dev/loop0)'
+ [[ /dev/loop0 =~ /dev/md ]]
+ [[ (hostdisk//dev/loop0) =~ hostdisk ]]
+ cat
+ chroot /tmp/fai-diskimage.svkFCT grub-install --no-floppy --modules=part_msdos /dev/loop0
Installing for i386-pc platform.
Installation finished. No error reported.
+ '[' 0 -eq 0 ']'
+ echo 'Grub installed on hostdisk /dev/loop0'
Grub installed on hostdisk /dev/loop0
+ rm /tmp/fai-diskimage.svkFCT/boot/grub/device.map
+ chroot /tmp/fai-diskimage.svkFCT update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.0-9-amd64
Found initrd image: /boot/initrd.img-6.1.0-9-amd64
...

Reiner
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.