~ubuntu-core-dev/ubuntu/+source/initramfs-tools:ubuntu/devel

Last commit made on 2025-03-03
Get this branch:
git clone -b ubuntu/devel https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/initramfs-tools
Members of Ubuntu Core Development Team can upload to this branch. Log in for directions.

Branch merges

Branch information

Recent commits

1702830... by Benjamin Drung

Release initramfs-tools 0.146ubuntu1

Signed-off-by: Benjamin Drung <email address hidden>

41fb9bf... by Benjamin Drung

merge-changelog

9214b89... by gerald.yang

gateway4/gateway6 are depreated in netplan config, generate routes instead

According to netplan doc
https://netplan.readthedocs.io/en/latest/netplan-yaml gateway4/gateway6
are deprecated and the first version deprecates these fields is 0.103,
it should use "routes:" instead.

LP: #2093164

cae2599... by Benjamin Drung

Add iBFT test cases to qemu-net-iscsi autopkgtest

`debian/tests/ibft.pl` is `test/TEST-70-ISCSI/ibft.pl` from the
dracut 106 release.

LP: #2091904

6a99b7c... by Benjamin Drung

test: skip failing qemu-net-iscsi on arm64

See https://launchpad.net/bugs/2097568

cfc76a4... by Benjamin Drung

configure_networking: Configure IPv4 or IPv6 based on iBFT IP address

iSCSI Boot Firmware Table (iBFT) can provide the network configuration
that is needed to boot over iSCSI. The iBFT can contain IPv4 or IPv6
addresses. local-top/iscsi calls `configure_networking`. The default
behaviour of `configure_networking` is DHCPv4 on all available
interfaces (if ip= and ip6= are not set). If iBFT provides IPv6
addresses and no DHCPv4 server are running, `configure_networking` will
only try DHCPv4 and run into a timeout.

Placing the single line "ISCSI_AUTO=true" into
/etc/iscsi/iscsi.initramfs, or use the kernel boot line option
"iscsi_auto" will configure the network devices based on iBFT, but the
code in `local-top/iscsi` will assume that the addresses are IPv4.

If neither `ip=` nor `ip6=` are specified on the kernel cmdline, set the
`IP` and `IP6` parameter for `configure_networking` based on the IP
address provided by iBFT.

LP: #2091904

120e179... by Benjamin Drung

persist hostname provided by DHCP only if not set yet

To preserve previous behavior of initramfs-tools on Ubuntu, only persist
the hostname provided by DHCP if the hostname is not set yet.

b62f739... by Benjamin Drung

Use 3cpio for unmkinitramfs/lsinitramfs if available

Since Ubuntu 23.10 the initrd consists of 4 embedded cpio:

- amd microcode
- intel microcode
- firmware + kernel modules
- rest (compressed)

There is no archive size header for cpio, so unmkinitramfs has to parse
headers of each entry in uncompressed archives.

Use 3cpio in case it is installed.

LP: #2059976

3d34bac... by Benjamin Drung

Relax miniramfs breakage to << 1.0.2ubuntu1~

miniramfs 1.0.2ubuntu1 already fixes the initramfs-tools breakage. Relax
the miniramfs breakage declaration. This relaxation can be dropped in
Ubuntu 25.10.

6e3d96c... by Benjamin Drung

hook-functions: Print error message on copy_file failure

Print an error message when copy_file cannot find the source file. This
will ease debugging in cases of failures like LP #1641230.