worked here
System:
Supermicro
at /sys/To be filled by O.E.M.
X9SRH-7F/7TF
Root mount:
/dev/sda2 on / type ext4 (rw,relatime)
Distributor ID: Ubuntu
Description: Ubuntu Plucky Puffin (development branch)
Release: 25.04
Codename: plucky
ZFS 2.3
bluca
February 18, 2025, 12:20am
42
For the use case we are talking about here, locally-generated initrds, mkosi-initrd is not intended in the first place. Dracut will remain around for that for the foreseeable future in all distros.
mkosi-initrdâs use case is pre-built initrds, and we already have a solution for that: core-initrd and snapped kernels, as used on FDE desktop images.
mkosi-initrd is used also fully intended to be used for locally built initrds. The image will be customized for local crypttab, cmdline, modules, firmware, but still be built from packages for all the rest. I have documented this some time ago at https://wiki.debian.org/EFIStub#With_mkosi-initrd
juliank
February 18, 2025, 4:03pm
43
While you can do that itâs not advisable due to the significant overhead involved.
bluca
February 19, 2025, 2:58pm
44
Building from packages is for sure a bit slower due to dpkg, but I wouldnât say itâs a deal breaker
I use dracut in ubuntu since 22.04, I never had single problem, it is powerful and easy to config.
I actually installed the dracut
binary package, and removed initramfs-tools
. I do not want hybrid config. I think it works more stable without initramfs-tools
Iâm not sure if this is related to dracut
$ sudo dpkg --configure -a
Setting up grub-pc (2.12-5ubuntu9) ...
error: unexpected argument '-Z' found
tip: to pass '-Z' as a value, use '-- -Z'
Usage: cp [OPTION]... [-T] SOURCE DEST
cp [OPTION]... SOURCE... DIRECTORY
cp [OPTION]... -t DIRECTORY SOURCE...
For more information, try '--help'.
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Setting up apparmor (4.1.0~beta5-0ubuntu9) ...
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/apparmor.postinst configure 4.1.0~beta5-0ubuntu6
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ . /lib/apparmor/rc.apparmor.functions
+ PARSER=/sbin/apparmor_parser
+ PARSER_OPTS=--write-cache
+ [ no = yes ]
+ [ n = y ]
+ [ -d /etc/apparmor.d ]
+ PROFILE_DIRS=/etc/apparmor.d
+ ADDITIONAL_PROFILE_DIR=
+ [ -n ]
+ AA_STATUS=/usr/sbin/aa-status
+ SECURITYFS=/sys/kernel/security
+ SFS_MOUNTPOINT=/sys/kernel/security/apparmor
+ STATUS=0
+ dpkg --compare-versions 4.1.0~beta5-0ubuntu6 lt-nl 2.13-7
+ dpkg --compare-versions 4.1.0~beta5-0ubuntu6 lt-nl 2.13-7
+ dpkg --compare-versions 4.1.0~beta5-0ubuntu6 lt-nl 2.5~pre+bzr1362-0ubuntu2
+ db_get apparmor/homedirs
+ _db_cmd GET apparmor/homedirs
+ _db_internal_IFS=
+ IFS=
+ printf %s\n GET apparmor/homedirs
+ IFS=
+ read -r _db_internal_line
+ IFS=
+ RET=
+ return 0
+ mktemp
+ tmp=/tmp/tmp.wrf0fgLfRW
+ cat
+ [ -n ]
+ cat
+ mkdir -p /etc/apparmor.d/tunables/home.d
+ mv -Z -f /tmp/tmp.wrf0fgLfRW /etc/apparmor.d/tunables/home.d/ubuntu
error: unexpected argument '-Z' found
tip: to pass '-Z' as a value, use '-- -Z'
Usage: mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...
For more information, try '--help'.
dpkg: error processing package apparmor (--configure):
installed apparmor package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
grub-efi-amd64-signed depends on grub-efi-amd64 | grub-pc; however:
Package grub-efi-amd64 is not installed.
Package grub-pc is not configured yet.
dpkg: error processing package grub-efi-amd64-signed (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
grub-pc
apparmor
grub-efi-amd64-signed
I decided to go all in on this Lubuntu VM
1 Like
I asked around; are you using the Rust coreutils instead of the regular one?
If so, GRUBâs packaging isnât quite adapted for it yet. You could either revert to the regular coreutils, or try patching it manually (not recommended).
If you arenât actually using the Rust coreutils, then this is very curious, please explain more.
Oh! that could be itâŠ
Haha
That doesnât show after I reverted it
1 Like
Does clevis-dracut work in 24.10? It doesnât seem to work in 24.04, although it was strangely working for me until a recent update.
I need Clevis to connect to a Tang server.
I notice that clevis-dracut seems to be supported in 25.04.
Following Please try out dracut and the specification [Spec] Switch to Dracut we are going to support Dracut as alternative to initramfs-tools as initrd generation tool in Ubuntu 25.04 (plucky). We want to make Dracut the default in the following Ubuntu 25.10.
How to switch to Dracut
If you are running Ubuntu 25.04 (plucky) you can decide to switch from initramfs-tools to Dracut. The following steps are designed to be easy and safe to revert back.
Check the âKnown Issuesâ section if your setâŠ
Thanks
25.04 releases this Thursday. Upgrade when itâs offered (usually a week or two after release) and try it after youâve upgraded if you want to experiment with it for best results.
nerumo
April 14, 2025, 12:20pm
52
Success on Plucky with hostonly
and tpm2-tss
System:
Dell Inc.
XPS
XPS 15 9510
Root mount:
/dev/mapper/nvme0n1p5_crypt on / type ext4 (rw,relatime,errors=remount-ro)
goarne
June 16, 2025, 9:57am
53
Up and running on both Ubuntu 22.04 and 24.04, Desktop and Laptop usage.
A couple of adaptations made this fly, some rather hacky:
/etc/dracut.conf is extended by
install_items+=" /etc/alternatives/default.plymouth "
omit_drivers+=" nvidia nvidia_drm nvidia_modeset "
persistent_policy="by-uuid"
use_fstab="yes"
hostonly="yes"
hostonly_cmdline="no"
File /usr/sbin/plymouth-set-default-theme, mode 755
----
if [ -f /etc/alternatives/default.plymouth ] ; then
echo `ls -la /etc/alternatives/default.plymouth | awk -F\/ '{print $NF}' | sed -e "s/.plymouth$//g"`
else
echo "text"
fi
Plymouth works this way, also with luks2 disk encryption.
Masking Nvidia Kernel Modules made suspend work on laptops with Nvidia graphics card.
File: /usr/local/sbin/update-initramfs, mode 755
----
echo This is not Ubuntu update-initramfs
echo "$@"
/usr/bin/dracut -f 2> /dev/null > /dev/null
Systems are managed by fai
It is working, independent to choice of bootloader grub or systemd-boot and persists system upgrades.
initramfs-tools are purged from the system, both dracut-core and dracut are installed.
Felt less painful than making initramfs-tools ignore nvidia modules. I guess Ubuntu 24.10 improved on apt / dpkg integration making the hack of overwriting update-initramfs obsolete.
So I just ran apt full-upgrade
update-initramfs: deferring update (trigger activated)
dpkg: cycle found while processing triggers:
chain of packages whose triggers are or may be responsible:
dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut -> dracut
packages' pending triggers which are or may be unresolvable:
dracut: update-initramfs
dpkg: error processing package dracut (--configure):
triggers looping, abandoned
Errors were encountered while processing:
dracut
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Then when I re-ran:
$ sudo apt update && sudo apt full-upgrade
Hit:1 http://deb.xanmod.org releases InRelease
Hit:2 http://security.ubuntu.com/ubuntu devel-security InRelease
Hit:3 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu devel InRelease
Get:4 https://dl.anyware.hp.com/RWNdFtxzXyopO6wn/pcoip-client-beta/deb/ubuntu jammy InRelease [3,129 B]
Hit:5 http://ca.archive.ubuntu.com/ubuntu devel InRelease
Hit:6 http://ca.archive.ubuntu.com/ubuntu devel-updates InRelease
Hit:7 http://ca.archive.ubuntu.com/ubuntu devel-backports InRelease
Hit:8 http://ca.archive.ubuntu.com/ubuntu devel-proposed InRelease
Get:9 https://dl.anyware.hp.com/RWNdFtxzXyopO6wn/pcoip-client-beta/deb/ubuntu noble InRelease [3,108 B]
Get:10 https://dl.anyware.hp.com/jR4ERCfTQYhyaADh/pcoip-client/deb/ubuntu jammy InRelease [3,124 B]
Get:11 https://dl.anyware.hp.com/jR4ERCfTQYhyaADh/pcoip-client/deb/ubuntu noble InRelease [3,103 B]
Fetched 12.5 kB in 1s (11.3 kB/s)
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Warning: Conflicting distribution: http://security.ubuntu.com/ubuntu devel-security InRelease (expected devel-security but got questing)
Warning: Conflicting distribution: https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu devel InRelease (expected devel but got questing)
Warning: Conflicting distribution: http://ca.archive.ubuntu.com/ubuntu devel InRelease (expected devel but got questing)
Warning: Conflicting distribution: http://ca.archive.ubuntu.com/ubuntu devel-updates InRelease (expected devel-updates but got questing)
Warning: Conflicting distribution: http://ca.archive.ubuntu.com/ubuntu devel-backports InRelease (expected devel-backports but got questing)
Warning: Conflicting distribution: http://ca.archive.ubuntu.com/ubuntu devel-proposed InRelease (expected devel-proposed but got questing)
The following packages were automatically installed and are no longer required:
gcc-14-base:i386 libhidapi-hidraw0 libwxbase3.0-0v5 nvidia-firmware-570-570.124.04
libabsl20230802 libjxl0.7 libwxgtk3.0-gtk3-0v5 nvidia-firmware-570-570.144
libclang-cpp18 libllvm18 libxml2:i386 nvidia-firmware-570-570.153.02
libclang1-19 libllvm19 linux-headers-6.14.0-13 pkg-config
libfuse3-3 libmanette-0.2-0 linux-tools-6.14.0-13 screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
Not upgrading:
sudo-rs
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 1
1 not fully installed or removed.
Space needed: 0 B / 19.6 GB available
Continue? [Y/n]
Setting up dracut (107-1ubuntu3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for dracut (107-1ubuntu3) ...
update-initramfs: deferring update (trigger activated)
dpkg: cycle found while processing triggers:
chain of packages whose triggers are or may be responsible:
dracut -> dracut
packages' pending triggers which are or may be unresolvable:
dracut: update-initramfs
dpkg: error processing package dracut (--configure):
triggers looping, abandoned
Errors were encountered while processing:
dracut
Error: Sub-process /usr/bin/dpkg returned an error code (1)
bdrung
July 5, 2025, 10:09am
55
Ups. Thatâs a bug that my recent dracut upload causes. Can you file a Launchpad bug against dracut? Iâll fix that after the weekend. I should add an autopkgtest for that.
sorry. Been busy
Iâll do that as soon as I can (it was running in one of my VMs)
bdrung
July 8, 2025, 9:01pm
57
No worries. I created the bug report myself: Bug #2116073 âdracut 107-1ubuntu3 fails to install: triggers loo... : Bugs : dracut package : Ubuntu
It is fixed in dracut 107-1ubuntu4 which is currently in dracut-proposed.
1 Like
Any idea if we can use dracut as default tool for Ubuntu 26.04? For me itâs working already on 25.10, but there is the feature freeze that maybe not allow dracut by default in this release.