fai-diskimage and /dev/loop0

Schulz, Reiner R.Schulz at dvz-mv.de
Tue May 16 13:43:45 CEST 2023


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20230516/d1373415/attachment.html>


More information about the linux-fai mailing list