AW: fai-diskimage and /dev/loop0
fstabkey:uuid thats is it Reiner -Ursprüngliche Nachricht- Von: linux-fai Im Auftrag von Thomas Lange Gesendet: Dienstag, 16. Mai 2023 14:11 An: fully automatic installation for Linux Betreff: Re: fai-diskimage and /dev/loop0 > On Tue, 16 May 2023 11:43:45 +, "Schulz, Reiner" > said: > Hi there > I am on my first steps with fai-diskimage from fai 5.8.4 > 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? J Maybe your FAI version is too old? Or do your disk_config uses the device name instead of an UUID for the fstab entries? Please try to use the option fstabkey:uuid in your disk_config. -- ragrds Thomas
Re: fai-diskimage and /dev/loop0
> On Tue, 16 May 2023 11:43:45 +, "Schulz, Reiner" > said: > Hi there > I am on my first steps with fai-diskimage from fai 5.8.4 > 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? J Maybe your FAI version is too old? Or do your disk_config uses the device name instead of an UUID for the fstab entries? Please try to use the option fstabkey:uuid in your disk_config. -- ragrds Thomas
fai-diskimage and /dev/loop0
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