Installing dracut on the install client
Robert Markula
robert at markula.org
Tue Jan 22 23:10:06 CET 2019
Howdy,
anyone succeeded in installing dracut on a Debian stretch client using FAI?
I can switch to dracut on a conventional (non-FAI) install just fine
using these commands:
apt-get --no-install-recommends install dracut-core
cp -p /boot/vmlinuz-4.9.0-8-amd64 /boot/vmlinuz-4.9.0-8-amd64~dracut
dracut -f /boot/initrd.img-4.9.0-8-amd64~dracut
update-grub
But on a system that got installed via FAI this won't work. Tried both
booting into a system that already got installed via FAI and repeating
the above steps as well as using a quick&dirty FAI script like that:
$ROOTCMD apt-get -y --no-install-recommends install dracut-core
cp -p $target/boot/vmlinuz-4.9.0-8-amd64
$target/boot/vmlinuz-4.9.0-8-amd64~dracut
$ROOTCMD dracut -f /boot/initrd.img-4.9.0-8-amd64~dracut
$ROOTCMD update-grub
Both steps fail with a kernel panic right after GRUB if the dracut entry
is chosen.
Cheers,
Robert
PS: Here is the output of dracut -f:
root at test:/boot# dracut -f /boot/initrd.img-4.9.0-8-amd64~dracut
dracut: Executing: /usr/bin/dracut -f /boot/initrd.img-4.9.0-8-amd64~dracut
dracut: dracut module 'bootchart' will not be installed, because command
'/sbin/bootchartd' could not be found!
dracut: dracut module 'caps' will not be installed, because command
'capsh' could not be found!
dracut: dracut module 'modsign' will not be installed, because command
'keyctl' could not be found!
dracut: dracut module 'btrfs' will not be installed, because command
'btrfs' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command
'dmraid' could not be found!
dracut: dracut module 'mdraid' will not be installed, because command
'mdadm' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because
command 'biosdevname' could not be found!
dracut: dracut module 'masterkey' will not be installed, because command
'keyctl' could not be found!
dracut: dracut module 'caps' will not be installed, because command
'capsh' could not be found!
dracut: dracut module 'modsign' will not be installed, because command
'keyctl' could not be found!
dracut: dracut module 'btrfs' will not be installed, because command
'btrfs' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command
'dmraid' could not be found!
dracut: dracut module 'mdraid' will not be installed, because command
'mdadm' could not be found!
dracut: dracut module 'masterkey' will not be installed, because command
'keyctl' could not be found!
dracut: *** Including module: bash ***
dracut: *** Including module: dash ***
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: console-setup ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 10-dm.rules
dracut: Skipping udev rule: 13-dm-disk.rules
dracut: Skipping udev rule: 95-dm-notify.rules
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 11-dm-lvm.rules
dracut: Skipping udev rule: 69-dm-lvm-metad.rules
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: *** Including module: overlay-root ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done***
dracut: Could not find 'strip'. Not stripping the initramfs.
dracut: *** Generating early-microcode cpio image ***
dracut: *** Store current command line parameters ***
dracut: Stored kernel commandline:
dracut: rd.lvm.lv=vgmain/root
rd.lvm.lv=vgmain/swap
dracut: resume=/dev/mapper/vgmain-swap
dracut: root=/dev/mapper/vgmain-root rootfstype=ext4
rootflags=rw,relatime,errors=remount-ro,data=ordered
dracut: *** Creating image file '/boot/initrd.img-4.9.0-8-amd64~dracut' ***
dracut: *** Creating initramfs image file
'/boot/initrd.img-4.9.0-8-amd64~dracut' done ***
PPS: The disk_config is a simple LVM-based system:
# Physical disks
disk_config disk1 bootable:1 fstabkey:uuid
primary /boot 1GiB ext4 defaults,errors=remount-ro
primary - 18GiB- - -
# LVM layer
disk_config lvm
vg vgmain disk1.2
vgmain-root / 10GiB ext4 defaults,errors=remount-ro
vgmain-home /home 1GiB ext4 defaults,noexec,nosuid,nodev
vgmain-srv /srv 1GiB- ext4 defaults,noexec,nosuid,nodev
vgmain-tmp /tmp 1GiB ext4 defaults,noexec,nosuid,nodev
vgmain-var /var 2GiB ext4 defaults,nosuid
vgmain-vartmp /var/tmp 1GiB ext4
defaults,noexec,nosuid,nodev
vgmain-swap swap 1GiB swap sw
More information about the linux-fai
mailing list