initramfs-tools (0.142ubuntu25.5) noble; urgency=medium
* configure_networking: Configure IPv4 or IPv6 based on iBFT IP address
(LP: #2091904)
* test:
- d/tests/check-log: import improvements from 0.145ubuntu1
- support setting a disk label in build_fs_ext2
- test-common: move disc logic out of _run_qemu
- move wait_for_server_startup to test-common
- check for QEMU PID in wait_for_server_startup
- Add qemu-net-iscsi autopkgtest for iBFT test cases
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 07 Feb 2025 15:21:59 +0100
initramfs-tools (0.142ubuntu25.4) noble; urgency=medium
* hook-functions: Call _call_dracut_install instead of manual_add_modules
when using module filters to fix the regression from previous version
(LP: #2081700)
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 24 Sep 2024 12:49:29 +0200
initramfs-tools (0.142ubuntu25.3) noble; urgency=medium
* hook-functions: Include all UFS storage drivers (LP: #2081020)
* reduce number of dracut-install calls: stage all kernel module copying
when running scripts in /usr/share/initramfs-tools/hooks and copy
all kernel modules in one go afterwards. (LP: #2081334)
* Fix build failure with netplan.io 1.0.1-1ubuntu2~24.04.1:
- test: Make netplan test configs not accessible by others
- Build-depend on udev for udevadm used by netplan
* test: Increase QEMU timeout to 120s
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 20 Sep 2024 20:32:24 +0200
initramfs-tools (0.142ubuntu25.2) noble; urgency=medium
[ Jeffery To ]
* Fix resume failure due to resume=UUID=... in certain cases (LP: #1769297)
* hooks/resume: Fix resume device type check
[ Benjamin Drung ]
* resume: always write valid resume device to /sys/power/resume (LP: #1769297)
* mkinitramfs: Resolve hidden dependencies after all modules were copied
* reduce number of dracut-install calls: group dracut-install calls for
block modules in auto_add_modules and use copy_modules_dir code instead
of dracut-install calls (LP: #2065180)
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 05 Jul 2024 09:58:14 +0200
initramfs-tools (0.142ubuntu25.1) noble; urgency=medium
* configure_network: Call dhcpcd with --nolink --noipv4ll to succeed getting
a DHCP lease on the first try and avoid a 30 seconds delay (LP: #2065037)
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 10 May 2024 15:03:48 +0200
initramfs-tools (0.142ubuntu25) noble; urgency=medium
* Copy only dhcpcd user into initramfs /etc/passwd (LP: #2059739)
* autopkgtest: Ignore remainig udev processes also on amd64
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 17 Apr 2024 17:55:09 +0200
initramfs-tools (0.142ubuntu24) noble; urgency=medium
* No-change rebuild for CVE-2024-3094
-- Steve Langasek <steve.langasek@ubuntu.com> Sun, 31 Mar 2024 00:08:30 +0000
initramfs-tools (0.142ubuntu23) noble; urgency=medium
[ Daniel van Vugt ]
* hooks/framebuffer: Only add simple/tiny framebuffer drivers. This is to
limit the size of initrd when FRAMEBUFFER=y is soon enabled for desktop
installations (LP: #1970069, #1869655).
[ Benjamin Drung ]
* autopkgtest: Increase QEMU timeouts on arm64/armhf
* hooks/framebuffer:
- Move adding framebuffer drivers into auto_add_modules
- Drop looking in $MODULESDIR/initrd/ for kernel modules
- Support MODULES=dep in framebuffer hook
-- Benjamin Drung <bdrung@ubuntu.com> Thu, 21 Mar 2024 10:57:54 +0100
initramfs-tools (0.142ubuntu22) noble; urgency=medium
* autopkgtest: update systemd-udevd path from /lib to /usr/lib
-- Benjamin Drung <bdrung@ubuntu.com> Thu, 14 Mar 2024 11:03:03 +0100
initramfs-tools (0.142ubuntu21) noble; urgency=medium
[ Benjamin Drung ]
* configure_networking:
- Increase minimum timeout to 30 seconds
- Fix configuring BOOTIF when using iSCSI (LP: #2056187)
- Set interface MTU if provided by the DHCP server (LP: #2056194)
- log sleep durations before retries
* Copy /etc/passwd into the initramfs to allow dhcpcd running as dhcpcd user
* Replace obsolete pkg-config build-dependency by pkgconf
[ Dan Bungert ]
* Restore nvdimm and dax pmem-related modules (LP: #1981385)
-- Benjamin Drung <bdrung@ubuntu.com> Mon, 11 Mar 2024 23:50:43 +0100
initramfs-tools (0.142ubuntu20) noble; urgency=medium
[ Benjamin Drung ]
* Fix determing multiarch dir when using libc6-prof's libc.so.6 (LP: #2054171)
* autopkgtest: Use qemu-system-$(dpkg --print-architecture)
[ Adam Vodopjan ]
* unmkinitramfs: add count_bytes iflag in a dd call (LP: #2055055)
[ Florent 'Skia' Jacquet ]
* d/t/test-common: fix finding klibc.so
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 02 Mar 2024 17:08:38 +0100
initramfs-tools (0.142ubuntu19) noble; urgency=medium
* copy_exec: ignore ldd output lines not starting with a tab (LP: #2046570)
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 19 Dec 2023 15:28:14 +0100
initramfs-tools (0.142ubuntu18) noble; urgency=medium
* Let initramfs-tools-core depend on e2fsprogs because fixrtc hook uses
/sbin/dumpe2fs (LP: #1831747)
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 08 Dec 2023 00:15:22 +0100
initramfs-tools (0.142ubuntu17) noble; urgency=medium
* install hid-multitouch module for Surface Pro 4 keyboard (LP: #1772094)
* test: log build_initramfs calls
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 15 Nov 2023 19:16:46 +0100
initramfs-tools (0.142ubuntu16) noble; urgency=medium
* Install nvmem, soc, power, and System Power Management Interface (SPMI)
kernel modules on ARM/RISC-V for MediaTek boards (LP: #2038512)
* Install intel_lpss_pci and spi_pxa2xx_platform kernel modules for keyboard
on MacBook Pro 2017 (LP: #2042710)
* Install surface_aggregator_registry for keyboard on Surface Laptop 4
(LP: #2007050)
* framebuffer: Add privacy screen modules to the initrd (LP: #1954320)
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 14 Nov 2023 19:34:42 +0100
initramfs-tools (0.142ubuntu15) mantic; urgency=medium
* scripts/functions: do not fail to configure networking too quickly. In
particular make sure an unsuccessful attempt to run DHCP takes at least
$ROUNDTTT seconds. (LP: #2037202)
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 04 Oct 2023 12:02:13 +1300
initramfs-tools (0.142ubuntu14) mantic; urgency=medium
* mkinitramfs: Skip compression support check if /boot/config-${version}
is missing (LP: #2018171)
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 26 Sep 2023 00:49:57 +0200
initramfs-tools (0.142ubuntu13) mantic; urgency=medium
* Support usr-merged library path when detecting mutliarch dir (LP: #2037156)
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 23 Sep 2023 13:45:37 +0200
initramfs-tools (0.142ubuntu12) mantic; urgency=medium
* Change dracut-core dependency to newly created dracut-install package
(LP: #2031304)
* autopkgtest:
- Explicitly specify supported architectures
- Enable KVM if available (not available on Ubuntu runners)
- log qemu parameters
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 23 Aug 2023 10:58:40 +0200
initramfs-tools (0.142ubuntu11) mantic; urgency=medium
* Use dracut-install in manual_add_modules to speed up mkinitramfs
significantly (LP: #2031185)
* Install tty/serial kernel modules. Dracut is doing the same. (LP: #2019435)
* Harmonize kernel module installation with dracut's behavior (LP: #2031841):
- Use the symbol regex from dracut-install to reduce the unnessary block
and net kernel modules.
- Install all usb/typec kernel modules instead of cherry-picking some.
- Do not install ARM/RISCV specific modules on other architectures.
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 18 Aug 2023 03:44:36 +0200
initramfs-tools (0.142ubuntu10) mantic; urgency=medium
* Fix resolving wrong multiarch libdir in dhcpcd hook (LP: #2031363)
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 15 Aug 2023 20:41:22 +0200
initramfs-tools (0.142ubuntu9) mantic; urgency=medium
* Replace dhclient by dhcpcd (LP: #2024164)
* Merge consecutive manual_add_modules calls into one
-- Benjamin Drung <bdrung@ubuntu.com> Mon, 14 Aug 2023 18:09:08 +0200
initramfs-tools (0.142ubuntu8) mantic; urgency=medium
[ Benjamin Drung ]
* mkinitramfs:
- Do not store intermediate main cpio archive
- Put compressed kernel modules and firmware files in an uncompressed cpio
(LP: #2028567)
* Add support for zstd-compressed firmware
* test: Ignore remaining systemd-udevd processes on arm64 as well
* Update lintian overrides to format for lintian 2.116.3
[ Loïc Minier ]
* hook-functions: add stusb160x kernel module for Tegra IGX (LP: #2027636)
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 26 Jul 2023 14:05:19 +0200
initramfs-tools (0.142ubuntu7) mantic; urgency=medium
* Extend autopkgtest to also run qemu on arm64, armhf, ppc64el, and s390x.
(see upstream merge request !80)
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 05 Jul 2023 21:54:53 +0200
initramfs-tools (0.142ubuntu6) mantic; urgency=medium
* To ease testing, always use the link-layer address as DHCP unique
identifier (DUID-LL) for DHCPv6.
* Drop direct dependency on isc-dhcp-client (it's not available on i386)
* Add qemu-net-dnsmasq autopkgtest to test DHCPv6
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 23 Jun 2023 21:12:21 +0200
initramfs-tools (0.142ubuntu5) mantic; urgency=medium
* scripts/functions: drop needing basename in initramfs
* Bring up networking if ip or ip6 is specified on cmdline.
Directly depend on isc-dhcp-client for that.
(Closes: #789067, LP: #1463846) (see merge request !77)
* Extent qemu-net autopkgtest to check more cases and results
* Move git repository under the ~ubuntu-core-dev umbrella
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 16 Jun 2023 15:19:50 +0200
initramfs-tools (0.142ubuntu4) mantic; urgency=medium
* Include kernel/drivers/usb/typec/ucsi with MODULES=most along with other
USB-C storage drivers.
-- Loïc Minier <loic.minier@ubuntu.com> Thu, 08 Jun 2023 17:49:02 +0000
initramfs-tools (0.142ubuntu3) mantic; urgency=medium
* Port the net autopkgtest to the common test framework. This drops
depending on downloading a cloud image from the Internet and reduces
the execution time from 3:19 min down to 0:57 min.
* test: Increase minimum ext2 block count (merge request !75)
* Fix shellcheck SC1010 and SC2015
-- Benjamin Drung <bdrung@ubuntu.com> Mon, 05 Jun 2023 12:23:21 +0200
initramfs-tools (0.142ubuntu2) lunar; urgency=medium
* Fix/ignore ShellCheck findings. Mostly taken from Debian MR !73.
Thanks to Damian Szuberski.
-- Benjamin Drung <bdrung@ubuntu.com> Thu, 06 Apr 2023 17:41:32 +0200
initramfs-tools (0.142ubuntu1) lunar; urgency=medium
* Merge from Debian unstable (LP: #1988418). Remaining changes:
- Make busybox-initramfs a real runtime dependency, fixing kernel install
failures with cryptsetup
- support mounting of loopback devices via loop*= parameters
- Drop hooks/keymap, scripts/init-top/keymap, and associated code;
console-setup takes care of this in Ubuntu.
- Add a new 'fixrtc' script that tries to set the system clock forward
based on the last mount time of the root disk; without this kludge,
systems without a working RTC will end up in a perpetual reboot loop.
- Trim leading whitespaces in dumpe2fs output so date command is happy in
the fixrtc script
- scripts/local-premount/fixrtc: ensure that the fixrtc script doesn't
produce extraneous output from wait-for-root and date
- Set hostname at boot, for the benefit of mdadm autoassembly.
- Allow scripts and hooks to specify OPTION=VAR, and unless VAR is set to
something other than "n", the script will not be included.
- Restore the framebuffer hook and script, copying KMS and other
framebuffer drivers into the initramfs, but make them optional; you need
to set FRAMEBUFFER=y for these to be included.
- Add hwaddr= alias for BOOTIF= for compatibility.
- Automatically blacklist vga16fb when vga= or video= specified on kernel
command-line.
- add squashfs to list of 'most' modules
- Add vfat and nls modules to the initramfs.
- Add Hyper-V paravirtualised device drivers to the initramfs to allow
booting of stock images in a Hyper-V guest.
- ppc64el: enable PowerPC NX Crypto Coprocessor
- Revised mountroot failure support. This is now deprecated and
effectively removed. However, to prevent breakage in other packages the
add_mountroot_fail_hook function is still present as an empty stub.
- resume: only resume when the partition contains a resume image
- Fix resuming a hibernate session from a swapfile
- Add new initramfs-tools-bin package containing a binary that uses
libudev to wait for udev to create the udev device, or wait for udev to
finish processing if we catch it in the act, and returns the filesystem
type as already probed by udev.
- local_device_setup: use wait-for-root if it supports the device alias
type
- debian/control: update Vcs-* links for Ubuntu.
- Add support for uppercase and lowercase uuids.
- init: Don't interpret "rootdelay" as a static sleep.
- src/wait-for-root.c, scripts/local: add explicit support for PARTUUID, a
syntax we may prefer for images that might boot without an initramfs.
- scripts/local: Let rootdelay determine the wait-for-root timeout.
- Increase rootdelay to 180s on powerpc/ppc64/ppc64el
- Support roottimeout= as the authoritative name for rootdelay= since the
Ubuntu interpretation of rootdelay is *not* a delay and this causes
inconsistent behavior depending on whether the kernel or an initramfs is
interpreting it.
- scripts/functions: by default, when setting up networking, use dhclient
if we're asked to do DHCP explicitly, or if we otherwise are expected to
do things automatically.
- scripts/functions: make sure we can try to start all available and
suitable interfaces if ip= isn't set when setting up the network, and
exit as soon as we get an IP address.
- split out IPv6 options in its own cmdline parameter: ip6= ; always use
dhclient in this case if the value set is anything other than 'off' or
'none'. Furthermore, parse anything other than 'on', 'dhcp' or 'any' as
the name of an interface.
- rework the stop conditions so that we properly handle the ROUNDTTT loop,
timing out after a short period of time and trying again after a short
sleep.
- add a 'done' parameter for both ip= and ip6= so that we can properly
exit the ROUNDTTT loop once we know that either there is no work to do,
or that we've achieved what we wanted (that is, to bring up IPv4, IPv6,
or possibly both).
- Just let dhclient scan the interfaces if none is specified for IPv6.
(previously unnoted)
- Do not handle ip=rarp specially (ipconfig hasn't supported it for some
time)
- Call dhclient in simple cases for IPv4 (this makes some small observable
changes -- for example ip=bootp will now make a DHCP request too -- but
nothing that seems important).
- Do not let dhclient processes hang around past the pivot and have them
respect the shorter timeouts ipconfig was given.
- Only source ipv4 config in configure_networking() if it exists.
- hook-functions, mkinitramfs, scripts/functions: support usage of dns
after configure_networking.
- Run unittests during autopkgtests.
- Add some autopkgtests for the network configuration processing.
- scripts/functions: write netplan config files to /run/netplan for
network devices configured with configure_networking.
- Adjust testsuite for correct expected netplan output.
- Add tests to parse netplan.yaml with netplan generate.
- Skip setting mac-address, unless unsupported unpredictable netnames are
used.
- scripts/functions:_render_netplan(): Make configure_networking() more
resilient when called by set -e scripts.
- scripts/functions: include a new option to skip enslaved network
devices.
- Auto activate qeth devices on s390x hosts, when using ip= ip6= command
lines.
- Add support for creating VLANs via vlan=eth0.1:eth0 on kernel
commandline, and as VLAN= conf.d snippet.
- Emit empty dictionary in the ethernets section, for static vlan configs
without any matches, as otherwise it is invalid config.
- Skip attempting to chzdev enable VLAN device
- scripts/functions: Fix the fix for bug #1880735, fixing setting up vlans
from the kernel commandline.
- Drop renderer from netplan yaml, such that netplan uses the default
rendered for the target system, i.e. NetworkManager on the desktop.
- debian/{control,rules}: Don't run shellcheck on i386 to avoid pulling
ghc into our minimal supported set for the pruned architecture.
- Work out the kernel modules required to support ZFS filesystems and add
them as necessary.
- Add modules for nvme path components on multipath nvme.
- debian/initramfs-tools.postinst: remove orphaned old-dkms initrd files
in /boot.
- Ensure we have a /usr/sbin directory in initramfs-tools-core
- Drop usage of klibc-utils' fstype in favor of always using udev blkid.
- Use set -a/+a around loading conf snippets, to autoexport hook
configuration variables. This thus allows packaged hooks to configure
each other.
- Fix PATH to include /usr/local.
- Revert upstream commit 0012977; Ubuntu's resume script implementation
diverges from Debian's and this special-case handling of UUID (which is
used as the resume target in the default scenario) is required here.
- Filter out looping or broken symlinks from the initramfs, since they
cause cpio to explode
- Always mount loop-mount filesystems read-write; ntfs-3g and vfat can't
remount yet.
- Provide a clearer error on mount failure of the Windows host filesystem
- Fix copying libgcc_s when there is optimized pthreads installed.
- scripts/local: Re-execute cryptroot local-block script.
- d/tests: Add explicit call to partprobe on net test, specially in prep-
image and run-image.
- scripts/local-premount/resume: Use readlink -f to correctly handle non-
symlink $resume
- d/t/control:autopkgtests running qemu need root, add needs-root
restriction
- Cherry-pick merge request !26 to support xz compressed firmware.
Uncompressed firmware is preffered, with a fallback to use compressed
firmware files.
- Improve shell scripts to conform to standards in shellcheck > 8.0
- Increase image file to 2GB in autopkgtest
- Force copy pthread and libgcc_s libraries via a stub binary. To avoid
circular shared library dependencies between compiler and libc,
libpthreads chooses to dlopen libgcc_s, instead of linking against it.
However, we have no way to parse/know what it needs. And even when we
hardcode to include libgcc_s1, we don't have a way to know which
libgcc_s1 is needed on a given system and from which path to include it.
But there is a hook-function to copy a binary and all of its shared
library dependencies. Thus create a stub empty executable, with shared
linking against pthreads and gcc_s1 and always include it in the initrd.
This way at initrd creation time, ldd is used to correctly resolve these
shared library dependencies and correctly copy them into the initrd.
This removes hardcoding paths as to where these libraries must be copied
from on the host.
- Lower the compression levels for zstd and lz4 Following the discussion
on the mailing list, we have reached a conclusion to lower the default
compression levels:
- For lz4, the compression level is lowered to 2 from 9
- For zstd, the compression level is lowered to 1 from 9
- Include nvdimm modules in block modules, they provide access to block
pmem devices.
- Include dax and nfit modules, also needed for pmem devices.
- Add char/hw_random drivers
* Removed patches obsoleted/merged by upstream:
- Switch default initramfs compression to zstd, as it produces the lower
overall boot time.
- Don't recommend pigz, which is in universe.
- Suppress shellcheck SC1010 errors, returning lots of false-positives on
use of 'done' as a word.
- hook-functions: when MODULES=list there will be no 'kernel' dir, so
don't try to find anything there, as it will log an 'error' this is
needed for amd64-ata-only autopkgtest to pass, or we would need to
ignore the 'error' with allow-stderr
- hooks/fsck: always include fsck binaries irrespective of PASSNO value,
otherwise initrds fail to mount rootfs and have no ability to fix the
rootfs.
- Cherry-pick merge request !51 to decompress compressed kernel modules
for boot speed performance.
- For net boot include most of net/usb modules, except niche modems.
* Reinstate build-time shellcheck (but leave shellcheck out of
autopkgtests as per debian bug #992798)
* Ensure commented COMPRESSLEVEL is consistent with the default
-- Dave Jones <dave.jones@canonical.com> Thu, 01 Sep 2022 13:43:43 +0100
initramfs-tools (0.142) unstable; urgency=medium
[ Dan Streetman ]
* [8c9840e] hooks/fsck: always include fsck binary (LP: #1917780)
[ Dimitri John Ledkov ]
* [d8c5864] mkinitramfs: decompress compressed kernel modules
[ szubersk ]
* [e447e91] resume: Don't resume from a swap device on a ZVOL
[ Johannes Schauer Marin Rodrigues ]
* [834d01d] hook-functions: Add pwm-imx27, nwl-dsi, ti-sn65dsi86,
imx-dcss, mxsfb, mux-mmio and imx8mq-interconnect for MNT Reform 2
panel/backlight.
[ Rich Ercolani ]
* [50d945a] Add support for specifying compression level
[ Ben Hutchings ]
* [5bf479d] hook-functions: Remove support for ieee1394 and i2o
* [9a4d579] hook-functions: auto_add_modules: Include UFS drivers from
drivers/ufs/
[ Sven Joachim ]
* [c064b9e] Copy modules.builtin.modinfo into initramfs (Closes: #1014319)
-- Ben Hutchings <benh@debian.org> Tue, 12 Jul 2022 23:51:34 +0200
initramfs-tools (0.141) unstable; urgency=medium
[ Hideki Yamane ]
* [742c8ee] Use zstd as default compression for initramfs (Closes: #976054)
* [b6ccfb6] Recommends: s/pigz/zstd/
* [1063c43] Add check whether zstd support kernel (>= 5.9) and
CONFIG_RD_ZSTD=y or not
* [71c29fd] As comparison, compression level 9 is better.
* [9cee2f0] Consider SOURCE_DATE_EPOCH option for zstd
[ Alper Nebi Yasak ]
* [db7aec4] hook-functions: Include io-domain in dw_mmc-rockchip hidden
dependencies
[ Michael Biebl ]
* [7ec5e26] Setup /dev/fd and /dev/std{in,out,err} after mounting devtmpfs
(Closes: #981302)
[ Dan Streetman ]
* [116b532] hook-functions: check for dir before running find on it
(LP: #1927779)
[ Vagrant Cascadian ]
* [a5d9b32] hook-functions: Add pwm-rockchip to "fb" modules for Pinebook PRO
LCD display.
* [7e15676] hook-functions: Add usb/typec/tcpm modules to support keyboard on
Pinebook PRO.
* [5f17c03] hook-functions: Add panel-edp to "fb" modules for Pinebook PRO
LCD display.
[ Ben Hutchings ]
* [26f2f00] Only run shellcheck in Salsa CI (Closes: #992798)
* [bd1519b] Fix shellcheck warning "Avoid x-prefix in comparisons ..."
* [4937118] hook-functions: Fix shellcheck warning "Expansions inside ${..}
need to be ..."
* [883f4ad] mkiniramfs: Log warning about missing compressor to stderr
* [035190c] mkinitramfs: Generalise kernel compression support check
* [58e05e4] d/salsa-ci.yml: Disable non-arch:all builds
* [5679e26] debian/tests/control: Add zstd as dependency to avoid (fatal)
warnings
* [e856af4] hook-functions: Support network boot via USB Ethernet adapters
(Closes: #980788)
* [ec5c6c7] scripts/functions: Refactor device name logic in
configure_networking
* [80eddcf] scripts/functions: Make configure_networking wait for device
specified any way (Closes: #911727)
[ Ben Love ]
* [02dc65f] Fully-qualify modprobe calls to avoid busybox
[ Ariel D'Alessandro ]
* [8a6f73c] hook-functions: Add nvmem-imx-ocotp driver module to network boot
-- Ben Hutchings <benh@debian.org> Sun, 10 Apr 2022 23:39:45 +0200
initramfs-tools (0.140ubuntu17) kinetic; urgency=medium
* Include update from Debian for depmod from kmod 30 (LP: #1987620)
+ Copy modules.builtin.modinfo into initramfs (Closes: #1014319)
-- Graham Inggs <ginggs@ubuntu.com> Tue, 30 Aug 2022 13:47:27 +0000
initramfs-tools (0.140ubuntu16) kinetic; urgency=medium
* Add char/hw_random drivers (LP: #1983359)
-- Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Tue, 02 Aug 2022 22:54:09 +0200
initramfs-tools (0.140ubuntu15) kinetic; urgency=medium
* Include dax and nfit modules, also needed for pmem devices. (LP: #1981385)
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Fri, 08 Jul 2022 15:03:33 +1200
initramfs-tools (0.140ubuntu14) kinetic; urgency=medium
* Include nvdimm modules in block modules, they provide access to block
pmem devices.
-- Dimitri John Ledkov <dimitri.ledkov@canonical.com> Wed, 06 Jul 2022 23:23:50 +0100
initramfs-tools (0.140ubuntu13) jammy; urgency=medium
* Lower the compression levels for zstd and lz4 (LP: #1958148)
Following the discussion on the mailing list, we have reached
a conclusion to lower the default compression levels:
- For lz4, the compression level is lowered to 2 from 9
- For zstd, the compression level is lowered to 1 from 19
-- Julian Andres Klode <juliank@ubuntu.com> Tue, 15 Mar 2022 16:00:55 +0100
initramfs-tools (0.140ubuntu12) jammy; urgency=medium
* Force copy pthread and libgcc_s libraries via a stub binary.
To avoid circular shared library dependencies between compiler and
libc, libpthreads chooses to dlopen libgcc_s, instead of linking
against it. However, we have no way to parse/know what it
needs. And even when we hardcode to include libgcc_s1, we don't
have a way to know which libgcc_s1 is needed on a given system and
from which path to include it. But there is a hook-function to
copy a binary and all of its shared library dependencies. Thus
create a stub empty executable, with shared linking against
pthreads and gcc_s1 and always include it in the initrd. This way
at initrd creation time, ldd is used to correctly resolve these
shared library dependencies and correctly copy them into the
initrd. This removes hardcoding paths as to where these libraries
must be copied from on the host. LP: #1958594 LP: #1880853
* For net boot include most of net/usb modules, except niche modems. LP:
#1950996
* Cherry-pick updated merge request !26 to support xz compressed
firmware. Uncompressed firmware is preffered, with a fallback to use
compressed firmware files. LP: #1942260
* Cherry-pick updated merge request !51 to decompress compressed kernel
modules for boot speed performance. LP: #1932329
-- Dimitri John Ledkov <dimitri.ledkov@canonical.com> Tue, 08 Feb 2022 20:43:02 +0000
initramfs-tools (0.140ubuntu11) jammy; urgency=medium
* Increase image file to 2GB in autopkgtest (LP: #1958904)
-- Andrea Righi <andrea.righi@canonical.com> Tue, 25 Jan 2022 15:03:39 +0000
initramfs-tools (0.140ubuntu10) jammy; urgency=medium
* Improve shell scripts to conform to standards in shellcheck > 8.0
-- William 'jawn-smith' Wilson <jawn-smith@ubuntu.com> Thu, 13 Jan 2022 09:19:53 -0600
initramfs-tools (0.140ubuntu9) jammy; urgency=medium
* scripts/local-premount/fixrtc: ensure that the fixrtc script doesn't
produce extraneous output from wait-for-root and date (LP: #1953521)
-- Dave Jones <dave.jones@canonical.com> Tue, 07 Dec 2021 15:35:22 +0000
initramfs-tools (0.140ubuntu8) jammy; urgency=medium
* Cherry-pick merge request !26 to support xz compressed
firmware. Uncompressed firmware is preffered, with a fallback to use
compressed firmware files. LP: #1942260
* Cherry-pick merge request !51 to decompress compressed kernel modules
for boot speed performance. LP: #1932329
* Cherry-pick partially merge request !50 to fix ftbfs with new
shellcheck.
* Fix shellcheck issues in ubuntu patches.
-- Dimitri John Ledkov <dimitri.ledkov@canonical.com> Tue, 19 Oct 2021 11:49:38 +0100
initramfs-tools (0.140ubuntu6) impish; urgency=medium
* Change dependencies to depend on zstd, instead of lz4. LP: #1931725
-- Dimitri John Ledkov <xnox@ubuntu.com> Mon, 14 Jun 2021 17:18:41 +0100
initramfs-tools (0.140ubuntu5) impish; urgency=medium
* Switch default initramfs compression to zstd, as it produces the lower
overall boot time. LP: #1931725
-- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 11 Jun 2021 16:55:30 +0100
initramfs-tools (0.140ubuntu4) impish; urgency=medium
* Pacify shellcheck to fix ftbfs.
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Thu, 06 May 2021 10:57:14 +1200
initramfs-tools (0.140ubuntu3) impish; urgency=medium
* scripts/functions: Fix the fix for bug #1880735, fixing setting up vlans
from the kernel commandline. LP: #1924794
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 05 May 2021 14:09:08 +1200
initramfs-tools (0.140ubuntu2) impish; urgency=medium
* Set +x bit on init again, missed again in merge despite best efforts.
-- Steve Langasek <steve.langasek@ubuntu.com> Fri, 30 Apr 2021 08:28:26 -0700
initramfs-tools (0.140ubuntu1) impish; urgency=low
* Merge from Debian unstable. Remaining changes:
- Make busybox-initramfs a real runtime dependency, fixing
kernel install failures with cryptsetup
- support mounting of loopback devices via loop*= parameters
- Drop hooks/keymap, scripts/init-top/keymap, and associated code;
console-setup takes care of this in Ubuntu.
- Add a new 'fixrtc' script that tries to set the system clock forward
based on the last mount time of the root disk; without this kludge,
systems without a working RTC will end up in a perpetual reboot loop.
- Trim leading whitespaces in dumpe2fs output so date command
is happy in the fixrtc script
- Set hostname at boot, for the benefit of mdadm autoassembly.
- Allow scripts and hooks to specify OPTION=VAR, and unless VAR is set
to something other than "n", the script will not be included.
- Restore the framebuffer hook and script, copying KMS and other
framebuffer drivers into the initramfs, but make them optional; you
need to set FRAMEBUFFER=y for these to be included.
- Add hwaddr= alias for BOOTIF= for compatibility.
- Automatically blacklist vga16fb when vga= or video= specified on
kernel command-line.
- add squashfs to list of 'most' modules
- Add vfat and nls modules to the initramfs.
- Add Hyper-V paravirtualised device drivers to the initramfs to allow
booting of stock images in a Hyper-V guest.
- ppc64el: enable PowerPC NX Crypto Coprocessor
- resume: only resume when the partition contains a resume image
- Fix resuming a hibernate session from a swapfile
- Add new initramfs-tools-bin package containing a binary that uses
libudev to wait for udev to create the udev device, or wait for udev
to finish processing if we catch it in the act, and returns the
filesystem type as already probed by udev.
- Don't recommend pigz, which is in universe.
- local_device_setup: use wait-for-root if it supports the device alias
type
- debian/control: update Vcs-* links for Ubuntu.
- Add support for uppercase and lowercase uuids.
- init: Don't interpret "rootdelay" as a static sleep.
- src/wait-for-root.c, scripts/local: add explicit support for PARTUUID, a
syntax we may prefer for images that might boot without an initramfs.
(previously unnoted)
- scripts/local: Let rootdelay determine the wait-for-root timeout.
- Increase rootdelay to 180s on powerpc/ppc64/ppc64el
- Support roottimeout= as the authoritative name for rootdelay= since
the Ubuntu interpretation of rootdelay is *not* a delay and this
causes inconsistent behavior depending on whether the kernel or an
initramfs is interpreting it.
- scripts/functions: by default, when setting up networking, use dhclient
if we're asked to do DHCP explicitly, or if we otherwise are expected
to do things automatically.
- scripts/functions: make sure we can try to start all available and
suitable interfaces if ip= isn't set when setting up the network, and
exit as soon as we get an IP address.
- split out IPv6 options in its own cmdline parameter: ip6= ; always use
dhclient in this case if the value set is anything other than 'off' or
'none'. Furthermore, parse anything other than 'on', 'dhcp' or 'any'
as the name of an interface.
- rework the stop conditions so that we properly handle the ROUNDTTT
loop, timing out after a short period of time and trying again after
a short sleep.
- add a 'done' parameter for both ip= and ip6= so that we can properly
exit the ROUNDTTT loop once we know that either there is no work to
do, or that we've achieved what we wanted (that is, to bring up IPv4,
IPv6, or possibly both).
- return ip=dhcp to the ipconfig use case; if set, then ipconfig will
be run using any interface available, or the BOOTIF if it was set.
- Just let dhclient scan the interfaces if none is specified for IPv6.
(previously unnoted)
- Do not handle ip=rarp specially (ipconfig hasn't supported it for
some time)
- Call dhclient in simple cases for IPv4 (this makes some small
observable changes -- for example ip=bootp will now make a DHCP
request too -- but nothing that seems important).
- Do not let dhclient processes hang around past the pivot and have
them respect the shorter timeouts ipconfig was given.
- Only source ipv4 config in configure_networking() if it exists.
(previously unnoted)
- hook-functions, mkinitramfs, scripts/functions: support usage of dns
after configure_networking.
- Run unittests during autopkgtests.
- Add some autopkgtests for the network configuration processing.
- scripts/functions: write netplan config files to /run/netplan for
network devices configured with configure_networking.
- Adjust testsuite for correct expected netplan output.
- Add tests to parse netplan.yaml with netplan generate.
- Skip setting mac-address, unless unsupported unpredictable netnames
are used.
- scripts/functions:_render_netplan(): Make configure_networking()
more resilient when called by set -e scripts.
- scripts/functions: include a new option to skip enslaved network
devices.
- Auto activate qeth devices on s390x hosts, when using ip= ip6= command
lines.
- Add support for creating VLANs via vlan=eth0.1:eth0 on kernel
commandline, and as VLAN= conf.d snippet.
- Emit empty dictionary in the ethernets section, for static vlan
configs without any matches, as otherwise it is invalid config.
- Skip attempting to chzdev enable VLAN device
- Drop renderer from netplan yaml, such that netplan uses the default
rendered for the target system, i.e. NetworkManager on the
desktop.
- Switch default initramfs compression to lz4, faster than the current
default gzip.
- debian/{control,rules}: Don't run shellcheck on i386 to avoid pulling
ghc into our minimal supported set for the pruned architecture.
- Work out the kernel modules required to support ZFS filesystems and
add them as necessary.
- Add modules for nvme path components on multipath nvme.
- debian/initramfs-tools.postinst: remove orphaned old-dkms initrd files
in /boot.
- Suppress shellcheck SC1010 errors, returning lots of false-positives on
use of 'done' as a word.
- Ensure we have a /usr/sbin directory in initramfs-tools-core
(previously unnoted)
- Drop usage of klibc-utils' fstype in favor of always using udev blkid.
- Use set -a/+a around loading conf snippets, to autoexport hook
configuration variables. This thus allows packaged hooks to configure
each other.
- Fix PATH to include /usr/local.
- Revert upstream commit 0012977; Ubuntu's resume script implementation
diverges from Debian's and this special-case handling of UUID (which is
used as the resume target in the default scenario) is required here.
- Filter out looping or broken symlinks from the initramfs, since they
cause cpio to explode
(previously unnoted)
- Always mount loop-mount filesystems read-write; ntfs-3g and vfat can't
remount yet.
(previously unnoted)
- Provide a clearer error on mount failure of the Windows host filesystem
(previously unnoted)
- Fix copying libgcc_s when there is optimized pthreads installed.
- scripts/local: Re-execute cryptroot local-block script.
- d/tests: Add explicit call to partprobe on net test, specially in
prep-image and run-image.
- Revised mountroot failure support. This is now deprecated and
effectively removed. However, to prevent breakage in other packages
the add_mountroot_fail_hook function is still present as an empty
stub.
- scripts/local-premount/resume: Use readlink -f to correctly handle
non-symlink $resume
- d/t/control:autopkgtests running qemu need root, add needs-root
restriction
- hook-functions: when MODULES=list there will be no 'kernel' dir, so
don't try to find anything there, as it will log an 'error' this is
needed for amd64-ata-only autopkgtest to pass, or we would need to
ignore the 'error' with allow-stderr
- hooks/fsck: always include fsck binaries irrespective of PASSNO value,
otherwise initrds fail to mount rootfs and have no ability to fix the
rootfs.
-- Steve Langasek <steve.langasek@ubuntu.com> Thu, 29 Apr 2021 08:57:03 -0700
initramfs-tools (0.140) unstable; urgency=medium
[ Norbert Lange ]
* mkinitramfs: use temporary file for uncompressed cpio
[ Michael Prokop ]
* mkinitramfs: report actually requested compress util if it's not present
[ Ben Hutchings ]
* init: Mount /dev without the noexec option
[ dann frazier ]
* configure_networking(): Wait for specified network device (Closes: #965935)
[ Bastian Blank ]
* Include all PCI controller modules
* Include all reset controller modules
-- Bastian Blank <waldi@debian.org> Sat, 13 Mar 2021 19:13:18 +0100
initramfs-tools (0.139ubuntu3) hirsute; urgency=medium
* hooks/fsck: always include fsck binaries irrespective of PASSNO value,
otherwise initrds fail to mount rootfs and have no ability to fix the
rootfs. LP: #1917780
-- Dimitri John Ledkov <xnox@ubuntu.com> Wed, 24 Mar 2021 15:21:50 +0000
initramfs-tools (0.139ubuntu2) hirsute; urgency=medium
* scripts/local-premount/resume:
- Use readlink -f to correctly handle non-symlink $resume
(LP: #1876570)
* d/t/control:
- autopkgtests running qemu need root, add needs-root restriction
* hook-functions:
- when MODULES=list there will be no 'kernel' dir, so don't try
to find anything there, as it will log an 'error'
this is needed for amd64-ata-only autopkgtest to pass,
or we would need to ignore the 'error' with allow-stderr
-- Dan Streetman <ddstreet@canonical.com> Thu, 18 Mar 2021 14:48:17 -0400
initramfs-tools (0.139ubuntu1) hirsute; urgency=low
* Merge from Debian unstable. Remaining changes:
- Make busybox-initramfs a real runtime dependency, fixing
kernel install failures with cryptsetup
- support mounting of loopback devices via loop*= parameters
- Drop hooks/keymap, scripts/init-top/keymap, and associated code;
console-setup takes care of this in Ubuntu.
- Add a new 'fixrtc' script that tries to set the system clock forward
based on the last mount time of the root disk; without this kludge,
systems without a working RTC will end up in a perpetual reboot loop.
- Trim leading whitespaces in dumpe2fs output so date command
is happy in the fixrtc script
- Set hostname at boot, for the benefit of mdadm autoassembly.
- Allow scripts and hooks to specify OPTION=VAR, and unless VAR is set
to something other than "n", the script will not be included.
- Restore the framebuffer hook and script, copying KMS and other
framebuffer drivers into the initramfs, but make them optional; you
need to set FRAMEBUFFER=y for these to be included.
- Add hwaddr= alias for BOOTIF= for compatibility.
- Automatically blacklist vga16fb when vga= or video= specified on
kernel command-line.
- add squashfs to list of 'most' modules
- Add vfat and nls modules to the initramfs.
- Add Hyper-V paravirtualised device drivers to the initramfs to allow
booting of stock images in a Hyper-V guest.
- ppc64el: enable PowerPC NX Crypto Coprocessor
- resume: only resume when the partition contains a resume image
- Fix resuming a hibernate session from a swapfile
- Add new initramfs-tools-bin package containing a binary that uses
libudev to wait for udev to create the udev device, or wait for udev
to finish processing if we catch it in the act, and returns the
filesystem type as already probed by udev.
- Don't recommend pigz, which is in universe.
- local_device_setup: use wait-for-root if it supports the device alias
type
- debian/control: update Vcs-* links for Ubuntu.
- Add support for uppercase and lowercase uuids.
- init: Don't interpret "rootdelay" as a static sleep.
- src/wait-for-root.c, scripts/local: add explicit support for PARTUUID, a
syntax we may prefer for images that might boot without an initramfs.
(previously unnoted)
- scripts/local: Let rootdelay determine the wait-for-root timeout.
- Increase rootdelay to 180s on powerpc/ppc64/ppc64el
- Support roottimeout= as the authoritative name for rootdelay= since
the Ubuntu interpretation of rootdelay is *not* a delay and this
causes inconsistent behavior depending on whether the kernel or an
initramfs is interpreting it.
- scripts/functions: by default, when setting up networking, use dhclient
if we're asked to do DHCP explicitly, or if we otherwise are expected
to do things automatically.
- scripts/functions: make sure we can try to start all available and
suitable interfaces if ip= isn't set when setting up the network, and
exit as soon as we get an IP address.
- split out IPv6 options in its own cmdline parameter: ip6= ; always use
dhclient in this case if the value set is anything other than 'off' or
'none'. Furthermore, parse anything other than 'on', 'dhcp' or 'any'
as the name of an interface.
- rework the stop conditions so that we properly handle the ROUNDTTT
loop, timing out after a short period of time and trying again after
a short sleep.
- add a 'done' parameter for both ip= and ip6= so that we can properly
exit the ROUNDTTT loop once we know that either there is no work to
do, or that we've achieved what we wanted (that is, to bring up IPv4,
IPv6, or possibly both).
- return ip=dhcp to the ipconfig use case; if set, then ipconfig will
be run using any interface available, or the BOOTIF if it was set.
- Just let dhclient scan the interfaces if none is specified for IPv6.
(previously unnoted)
- Do not handle ip=rarp specially (ipconfig hasn't supported it for
some time)
- Call dhclient in simple cases for IPv4 (this makes some small
observable changes -- for example ip=bootp will now make a DHCP
request too -- but nothing that seems important).
- Do not let dhclient processes hang around past the pivot and have
them respect the shorter timeouts ipconfig was given.
- Only source ipv4 config in configure_networking() if it exists.
(previously unnoted)
- hook-functions, mkinitramfs, scripts/functions: support usage of dns
after configure_networking.
- Run unittests during autopkgtests.
- Add some autopkgtests for the network configuration processing.
- scripts/functions: write netplan config files to /run/netplan for
network devices configured with configure_networking.
- Adjust testsuite for correct expected netplan output.
- Add tests to parse netplan.yaml with netplan generate.
- Skip setting mac-address, unless unsupported unpredictable netnames
are used.
- scripts/functions:_render_netplan(): Make configure_networking()
more resilient when called by set -e scripts.
- scripts/functions: include a new option to skip enslaved network
devices.
- Auto activate qeth devices on s390x hosts, when using ip= ip6= command
lines.
- Add support for creating VLANs via vlan=eth0.1:eth0 on kernel
commandline, and as VLAN= conf.d snippet.
- Emit empty dictionary in the ethernets section, for static vlan
configs without any matches, as otherwise it is invalid config. Patch
by mwhudson.
- Skip attempting to chzdev enable VLAN device
- Drop renderer from netplan yaml, such that netplan uses the default
rendered for the target system, i.e. NetworkManager on the
desktop.
- Switch default initramfs compression to lz4, faster than the current
default gzip.
- debian/{control,rules}: Don't run shellcheck on i386 to avoid pulling
ghc into our minimal supported set for the pruned architecture.
- Work out the kernel modules required to support ZFS filesystems and
add them as necessary.
- Add modules for nvme path components on multipath nvme.
- debian/initramfs-tools.postinst: remove orphaned old-dkms initrd files
in /boot.
- Suppress shellcheck SC1010 errors, returning lots of false-positives on
use of 'done' as a word.
- Ensure we have a /usr/sbin directory in initramfs-tools-core
(previously unnoted)
- Drop usage of klibc-utils' fstype in favor of always using udev blkid.
- Use set -a/+a around loading conf snippets, to autoexport hook
configuration variables. This thus allows packaged hooks to configure
each other.
- Fix PATH to include /usr/local.
- Revert upstream commit 0012977; Ubuntu's resume script implementation
diverges from Debian's and this special-case handling of UUID (which is
used as the resume target in the default scenario) is required here.
- Filter out looping or broken symlinks from the initramfs, since they
cause cpio to explode
(previously unnoted)
- Always mount loop-mount filesystems read-write; ntfs-3g and vfat can't
remount yet.
(previously unnoted)
- Provide a clearer error on mount failure of the Windows host filesystem
(previously unnoted)
- Fix copying libgcc_s when there is optimized pthreads installed.
- scripts/local: Re-execute cryptroot local-block script.
- d/tests: Add explicit call to partprobe on net test, specially in
prep-image and run-image.
* Revised mountroot failure support. This is now deprecated and effectively
removed. However, to prevent breakage in other packages the
add_mountroot_fail_hook function is still present as an empty stub.
* Dropped changes, included in Debian:
- Add support for panic=-1 value
- scripts/functions: Prevent printf error carry over if the wrong
console is set.
* Dropped changes, no longer needed:
- Support loading compcache from the initramfs.
- Incorporate rzscontrol from compcache so that we can control current
ramzswap devices.
-- Dave Jones <dave.jones@canonical.com> Sun, 13 Sep 2020 20:42:21 +0000
initramfs-tools (0.139) unstable; urgency=medium
* [9679f0c] debian/tests: Run amd64 tests on either amd64 or generic flavour
* [0099040] debian/tests/control: Mark all amd64 tests as
skip-not-installable (Closes: #970184)
* [3616c8f] conf/initramfs.conf: Fix typo "filesytem" (Closes: #970235)
-- Ben Hutchings <benh@debian.org> Sun, 13 Sep 2020 19:28:00 +0100
initramfs-tools (0.138) unstable; urgency=medium
[ Ben Hutchings ]
* [0b034b4] docs/maintainer-notes.md: Delete the horizontal rules
* [ba883cb] docs/maintainer-notes.md: Use Gitlab markup for table of contents
* [5284a00] docs/maintainer-notes.md: Use Gitlab markup for definition table
* [a469b7e] docs/maintainer-notes.md: Use archive.org URL for Daniel Baumann
doc
* [424260e] debian/control, docs/maintainer-notes.md: Use my @debian.org
address
* [181a35c] update-initramfs: Remove test for direct invocation from kernel
package
* [6ebe41b] Remove obsolete update-initramfs state in
/var/lib/initramfs-tools
* [2f2ad0d] hook-functions: copy_exec: Copy libgcc_s.so with any soversion up
to 9 (Closes: #959768)
* [0f24cc1] Add CI configuration for salsa.debian.org
* [9877542] initramfs.conf: Delete "NFS Section" comment
* [4309c3b] Add FSTYPE config parameter to allow overriding filesystem type
detection (Closes: #923400)
* [6300aa1] Change "panic" parameter handling to work more like the kernel
* [90d64bd] debian/tests: Add common test preparation code
* [3dd2984] debian/tests: Add basic test for amd64 using klibc and not
busybox
* [69240b1] debian/tests: Add basic test for amd64 using busybox
* [3d834c8] debian/tests: Add basic tests for amd64 with only ata/virtio
driver
* [c14b760] debian/tests: Add test for separate /usr device
* [6b3b361] debian/tests: Add test of the panic shell and parameter handling
[ Vagrant Cascadian ]
* [482897b] hook-functions: Add modules needed for Pinebook LCD display.
[ Guilherme G. Piccoli ]
* [c3cbf35] scripts/functions: Prevents printf error carry over if wrong
console is set (Closes: #960355)
[ Unit 193 ]
* [3b82099] When overriding configured compressor, warn the user.
[ Norbert Lange ]
* [e94f410] un-,mkinitramfs: add support for zstd (Closes: #955469)
[ Jann Horn ]
* [a7718dc] Add firmware for built-in drivers (Closes: #857054)
-- Ben Hutchings <benh@debian.org> Fri, 11 Sep 2020 20:37:29 +0100
initramfs-tools (0.137ubuntu12) groovy; urgency=medium
* d/tests: Add explicit call to partprobe on net test, specially in
prep-image and run-image. (LP: #1893675)
-- Guilherme G. Piccoli <gpiccoli@canonical.com> Mon, 31 Aug 2020 18:04:00 -0300
initramfs-tools (0.137ubuntu11) groovy; urgency=medium
* scripts/functions: Prevent printf error carry over if the wrong
console is set. (LP: #1879987)
The function _log_msg() is "void" typed, returning whatever its
last command returns. This function is the basic building block
for all error/warning messages in initramfs-tools. If a bad console
is provided to kernel on command-line, printf returns error, and so
this error is carried over in _log_msg(). Happens that checkfs()
function has a loop that runs forever in this scenario (*if* fsck
is not present in initramfs and "quiet" is not passed in the
command-line). If that happens, boot is stuck and cannot progress.
The simple fix hereby merged is to return zero on _log_msg().
* scripts/local: Re-execute cryptroot local-block script. (LP: #1879980)
Currently, if an encrypted rootfs is configured on top of a MD RAID1
array and such array gets degraded (like a member is removed/failed),
initramfs-tools cannot mount the rootfs and the boot fails. We fix
that issue here by allowing cryptroot script to re-run on local-block
stage, given that mdadm is able to activate a degraded array in that
point. There is a cryptsetup counter-part for this fix, but alone the
initramfs-tools portion is innocuous.
-- Guilherme G. Piccoli <gpiccoli@canonical.com> Mon, 03 Aug 2020 18:04:00 -0300
initramfs-tools (0.137ubuntu10) groovy; urgency=medium
* Trim leading whitespaces in dumpe2fs output so date command
is happy in the fixrtc script (LP: #1880968)
-- Alfonso Sanchez-Beato (email Canonical) <alfonso.sanchez-beato@canonical.com> Wed, 27 May 2020 16:52:16 +0200
initramfs-tools (0.137ubuntu9) groovy; urgency=medium
* Document add_mountroot_fail_hook correctly.
-- Dimitri John Ledkov <xnox@ubuntu.com> Sat, 30 May 2020 16:33:08 +0100
initramfs-tools (0.137ubuntu8) groovy; urgency=medium
* Partially revert 0.133ubuntu12 upload:
"* scripts/functions: Fix args in the add_mountroot_fail_check function."
The arguments were correct, as used by lvm2 hook. LP: #1871154
-- Dimitri John Ledkov <xnox@ubuntu.com> Sat, 30 May 2020 14:31:59 +0100
initramfs-tools (0.137ubuntu7) groovy; urgency=medium
* Fix copying libgcc_s when there is optimized pthreads installed.
LP: #1880853
-- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 29 May 2020 20:06:32 +0100
initramfs-tools (0.137ubuntu6) groovy; urgency=medium
* Fixup previous commit to fix build failure
-- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 27 May 2020 09:57:57 +0200
initramfs-tools (0.137ubuntu5) groovy; urgency=medium
* Skip attempting to chzdev enable VLAN device LP: #1880735
-- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 26 May 2020 15:07:40 +0100
initramfs-tools (0.137ubuntu4) groovy; urgency=medium
* Drop renderer from netplan yaml, such that netplan uses the default
rendered for the target system, i.e. NetworkManager on the
desktop. LP: #1876884
-- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 20 May 2020 23:50:52 +0200
initramfs-tools (0.137ubuntu3) groovy; urgency=low
* Merge from Debian unstable. Remaining changes:
- Make busybox-initramfs a real runtime dependency, fixing
kernel install failures with cryptsetup
- support mounting of loopback devices via loop*= parameters
- Drop hooks/keymap, scripts/init-top/keymap, and associated code;
console-setup takes care of this in Ubuntu.
- Add a new 'fixrtc' script that tries to set the system clock forward
based on the last mount time of the root disk; without this kludge,
systems without a working RTC will end up in a perpetual reboot loop.
- Set hostname at boot, for the benefit of mdadm autoassembly.
- Allow scripts and hooks to specify OPTION=VAR, and unless VAR is set
to something other than "n", the script will not be included.
- Restore the framebuffer hook and script, copying KMS and other
framebuffer drivers into the initramfs, but make them optional; you
need to set FRAMEBUFFER=y for these to be included.
- Add hwaddr= alias for BOOTIF= for compatibility.
- Automatically blacklist vga16fb when vga= or video= specified on
kernel command-line.
- add squashfs to list of 'most' modules
- Add vfat and nls modules to the initramfs.
- Add Hyper-V paravirtualised device drivers to the initramfs to allow
booting of stock images in a Hyper-V guest.
- ppc64el: enable PowerPC NX Crypto Coprocessor
- Add mountroot failure support, to allow meaningful messages when no
root device can be found.
- resume: only resume when the partition contains a resume image
- Add new initramfs-tools-bin package containing a binary that uses
libudev to wait for udev to create the udev device, or wait for udev
to finish processing if we catch it in the act, and returns the
filesystem type as already probed by udev.
- local_device_setup: use wait-for-root if it supports the device alias
type
- Incorporate rzscontrol from compcache so that we can control current
ramzswap devices.
- Support loading compcache from the initramfs.
- debian/control: update Vcs-* links for Ubuntu.
- Set executable bit on resume script in local-premount, which MoM seems
to consistently drop
- Add support for uppercase and lowercase uuids.
- init: Don't interpret "rootdelay" as a static sleep.
- scripts/local: Let rootdelay determine the wait-for-root timeout.
- Increase rootdelay to 180s on powerpc/ppc64/ppc64el
- Support roottimeout= as the authoritative name for rootdelay= since
the Ubuntu interpretation of rootdelay is *not* a delay and this
causes inconsistent behavior depending on whether the kernel or an
initramfs is interpreting it.
- scripts/functions: by default, when setting up networking, use dhclient
if we're asked to do DHCP explicitly, or if we otherwise are expected
to do things automatically.
- scripts/functions: make sure we can try to start all available and
suitable interfaces if ip= isn't set when setting up the network, and
exit as soon as we get an IP address.
- scripts/functions: for configure_networking:
- split out IPv6 options in its own cmdline parameter: ip6= ; always
use dhclient in this case if the value set is anything other than
'off' or 'none'. Furthermore, parse anything other than 'on', 'dhcp'
or 'any' as the name of an interface.
- rework the stop conditions so that we properly handle the ROUNDTTT
loop, timing out after a short period of time and trying again
after a short sleep.
- add a 'done' parameter for both ip= and ip6= so that we can properly
exit the ROUNDTTT loop once we know that either there is no work to
do, or that we've achieved what we wanted (that is, to bring up IPv4,
IPv6, or possibly both).
- Do not handle ip=rarp specially (ipconfig hasn't supported it for
some time)
- Call dhclient in simple cases for IPv4 (this makes some small
observable changes -- for example ip=bootp will now make a DHCP
request too -- but nothing that seems important).
- Do not let dhclient processes hang around past the pivot and have
them respect the shorter timeouts ipconfig was given.
- hook-functions, mkinitramfs, scripts/functions: support usage of dns
after configure_networking.
- Fix resuming a hibernate session from a swapfile
- scripts/functions: write netplan config files to /run/netplan for
network devices configured with configure_networking.
- Add some autopkgtests for the network configuration processing.
- Work out the kernel modules required to support ZFS filesystems and
add them as necessary.
- debian/initramfs-tools.postinst: remove orphaned old-dkms initrd files
in /boot.
- scripts/functions: include a new option to skip enslaved network
devices.
- Fix PATH to include /usr/local.
- Add modules for nvme path components on multipath nvme.
- Don't recommend pigz, which is in universe.
- Suppress shellcheck SC1010 errors, returning lots of false-positives on
use of 'done' as a word.
- Drop usage of klibc-utils' fstype in favor of always using udev blkid.
- Use set -a/+a around loading conf snippets, to autoexport hook
configuration variables. This thus allows packaged hooks to configure
each other.
- Auto activate qeth devices on s390x hosts, when using ip= ip6= command
lines.
- Switch default initramfs compression to lz4, faster than the current
default gzip.
- Add support for creating VLANs via vlan=eth0.1:eth0 on kernel
commandline, and as VLAN= conf.d snippet.
- Add support for panic=-1 value
- debian/{control,rules}: Don't run shellcheck on i386 to avoid pulling
ghc into our minimal supported set for the pruned architecture.
- Adjust testsuite for correct expected netplan output.
- Add tests to parse netplan.yaml with netplan generate.
- Run unittests during autopkgtests.
- Emit empty dictionary in the ethernets section, for static vlan
configs without any matches, as otherwise it is invalid config. Patch
by mwhudson.
- Skip setting mac-address, unless unsupported unpredictable netnames
are used.
- Revert upstream commit 0012977; Ubuntu's resume script implementation
diverges from Debian's and this special-case handling of UUID (which is
used as the resume target in the default scenario) is required here.
LP: #1869996.
- scripts/functions:_render_netplan(): Make configure_networking()
more resilient when called by set -e scripts. LP: #1868310.
-- Gianfranco Costamagna <locutusofborg@debian.org> Sun, 17 May 2020 18:31:33 +0200
initramfs-tools (0.137) unstable; urgency=medium
[ Ben Hutchings ]
* [1b28d25] Document copy_exec as usable for shared libraries
* [f2ac13e] hook-functions: copy_exec: Copy libgcc_s.so.1 along with
libpthread.so.* (Closes: #950254)
* [d96228a] hook-functions: copy_exec: Correct verbose log message for
symlinks
* [dd5fb36] hook-functions: Factor out device class walking into a function
* [14a00af] hook-functions: Don't add backlight modules if we have generic
fb device (Closes: #955347)
* [f6133e1] Fix new shellcheck warnings around unquoted parameter expansion
(Closes: #958851)
[ AP ]
* [857042c] hook-functions: Search for firmware under /lib/firmware/updates
(Closes: #956663)
-- Ben Hutchings <benh@debian.org> Tue, 28 Apr 2020 04:56:17 +0100
initramfs-tools (0.136ubuntu8) groovy; urgency=medium
* Drop renderer from netplan yaml, such that netplan uses the default
rendered for the target system, i.e. NetworkManager on the
desktop. LP: #1876884
-- Dimitri John Ledkov <xnox@ubuntu.com> Wed, 20 May 2020 15:41:09 +0100
initramfs-tools (0.136ubuntu7) groovy; urgency=medium
* Cherry-pick changes from Debian
- [f6133e1] Fix new shellcheck warnings around unquoted parameter expansion
(Closes: #958851)
-- Gianfranco Costamagna <locutusofborg@debian.org> Fri, 08 May 2020 11:49:12 +0200
initramfs-tools (0.136ubuntu6) focal; urgency=medium
* Adjust testsuite for correct expected netplan output.
* Add tests to parse netplan.yaml with netplan generate.
* Run unittests during autopkgtests.
-- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 09 Apr 2020 08:35:46 +0100
initramfs-tools (0.136ubuntu5) focal; urgency=medium
* Emit empty dictionary in the ethernets section, for static vlan
configs without any matches, as otherwise it is invalid config. Patch
by mwhudson.
-- Dimitri John Ledkov <xnox@ubuntu.com> Wed, 08 Apr 2020 21:22:40 +0100
initramfs-tools (0.136ubuntu4) focal; urgency=medium
* Skip setting mac-address, unless unsupported unpredictable netnames
are used.
-- Dimitri John Ledkov <xnox@ubuntu.com> Sat, 04 Apr 2020 23:39:59 +0100
initramfs-tools (0.136ubuntu3) focal; urgency=medium
* Revert upstream commit 0012977; Ubuntu's resume script implementation
diverges from Debian's and this special-case handling of UUID (which is
used as the resume target in the default scenario) is required here.
LP: #1869996.
-- Steve Langasek <steve.langasek@ubuntu.com> Wed, 01 Apr 2020 21:33:18 -0700
initramfs-tools (0.136ubuntu2) focal; urgency=medium
* scripts/functions:_render_netplan(): Make configure_networking()
more resilient when called by set -e scripts. LP: #1868310.
-- dann frazier <dannf@ubuntu.com> Fri, 20 Mar 2020 14:09:47 -0600
initramfs-tools (0.136ubuntu1) focal; urgency=low
* Merge from Debian unstable. Remaining changes:
- Make busybox-initramfs a real runtime dependency, fixing
kernel install failures with cryptsetup
- support mounting of loopback devices via loop*= parameters
- Drop hooks/keymap, scripts/init-top/keymap, and associated code;
console-setup takes care of this in Ubuntu.
- Add a new 'fixrtc' script that tries to set the system clock forward
based on the last mount time of the root disk; without this kludge,
systems without a working RTC will end up in a perpetual reboot loop.
- Set hostname at boot, for the benefit of mdadm autoassembly.
- Allow scripts and hooks to specify OPTION=VAR, and unless VAR is set
to something other than "n", the script will not be included.
- Restore the framebuffer hook and script, copying KMS and other
framebuffer drivers into the initramfs, but make them optional; you
need to set FRAMEBUFFER=y for these to be included.
- Add hwaddr= alias for BOOTIF= for compatibility.
- Automatically blacklist vga16fb when vga= or video= specified on
kernel command-line.
- add squashfs to list of 'most' modules
- Add vfat and nls modules to the initramfs.
- Add Hyper-V paravirtualised device drivers to the initramfs to allow
booting of stock images in a Hyper-V guest.
- ppc64el: enable PowerPC NX Crypto Coprocessor
- Add mountroot failure support, to allow meaningful messages when no
root device can be found.
- resume: only resume when the partition contains a resume image
- Add new initramfs-tools-bin package containing a binary that uses
libudev to wait for udev to create the udev device, or wait for udev
to finish processing if we catch it in the act, and returns the
filesystem type as already probed by udev.
- local_device_setup: use wait-for-root if it supports the device alias
type
- Incorporate rzscontrol from compcache so that we can control current
ramzswap devices.
- Support loading compcache from the initramfs.
- debian/control: update Vcs-* links for Ubuntu.
- Set executable bit on resume script in local-premount, which MoM seems
to consistently drop
- Add support for uppercase and lowercase uuids.
- init: Don't interpret "rootdelay" as a static sleep.
- scripts/local: Let rootdelay determine the wait-for-root timeout.
- Increase rootdelay to 180s on powerpc/ppc64/ppc64el
- Support roottimeout= as the authoritative name for rootdelay= since
the Ubuntu interpretation of rootdelay is *not* a delay and this
causes inconsistent behavior depending on whether the kernel or an
initramfs is interpreting it.
- scripts/functions: by default, when setting up networking, use dhclient
if we're asked to do DHCP explicitly, or if we otherwise are expected
to do things automatically.
- scripts/functions: make sure we can try to start all available and
suitable interfaces if ip= isn't set when setting up the network, and
exit as soon as we get an IP address.
- scripts/functions: for configure_networking:
- split out IPv6 options in its own cmdline parameter: ip6= ; always
use dhclient in this case if the value set is anything other than
'off' or 'none'. Furthermore, parse anything other than 'on', 'dhcp'
or 'any' as the name of an interface.
- rework the stop conditions so that we properly handle the ROUNDTTT
loop, timing out after a short period of time and trying again
after a short sleep.
- add a 'done' parameter for both ip= and ip6= so that we can properly
exit the ROUNDTTT loop once we know that either there is no work to
do, or that we've achieved what we wanted (that is, to bring up IPv4,
IPv6, or possibly both).
- Do not handle ip=rarp specially (ipconfig hasn't supported it for
some time)
- Call dhclient in simple cases for IPv4 (this makes some small
observable changes -- for example ip=bootp will now make a DHCP
request too -- but nothing that seems important).
- Do not let dhclient processes hang around past the pivot and have
them respect the shorter timeouts ipconfig was given.
- hook-functions, mkinitramfs, scripts/functions: support usage of dns
after configure_networking.
- Fix resuming a hibernate session from a swapfile
- scripts/functions: write netplan config files to /run/netplan for
network devices configured with configure_networking.
- Add some autopkgtests for the network configuration processing.
- Work out the kernel modules required to support ZFS filesystems and
add them as necessary.
- debian/initramfs-tools.postinst: remove orphaned old-dkms initrd files
in /boot.
- scripts/functions: include a new option to skip enslaved network
devices.
- Fix PATH to include /usr/local.
- Add modules for nvme path components on multipath nvme.
- Don't recommend pigz, which is in universe.
- Suppress shellcheck SC1010 errors, returning lots of false-positives on
use of 'done' as a word.
- Drop usage of klibc-utils' fstype in favor of always using udev blkid.
- Use set -a/+a around loading conf snippets, to autoexport hook
configuration variables. This thus allows packaged hooks to configure
each other.
- Auto activate qeth devices on s390x hosts, when using ip= ip6= command
lines.
- Switch default initramfs compression to lz4, faster than the current
default gzip.
- Add support for creating VLANs via vlan=eth0.1:eth0 on kernel
commandline, and as VLAN= conf.d snippet.
- Add support for panic=-1 value
- debian/{control,rules}: Don't run shellcheck on i386 to avoid pulling
ghc into our minimal supported set for the pruned architecture.
- Cherrypick upstream patch to include libgcc_s for libpthread.
- Handle both libgcc1 and libgcc-s1 locations.
* Dropped changes, included in Debian:
- Patch unmkinitramfs to cat possible lz4 archives first, as lz4 is
particular about enforcing .lz4 file extensions when operating on
files.
- mkinitramfs: Copy modules.builtin.bin into initramfs
* Dropped changes, no longer needed:
- remove Breaks on pre-bionic isc-dhcp-client.
* src/wait-for-root.c, scripts/local: add explicit support for PARTUUID, a
syntax we may prefer for images that might boot without an initramfs.
* Drop manual modprobe of filesystem modules, deemed redundant upstream
-- Steve Langasek <steve.langasek@ubuntu.com> Mon, 17 Feb 2020 17:19:14 -0800
initramfs-tools (0.136) unstable; urgency=medium
[ Mathieu Malaterre ]
* [90bd459] Update to new name for kernel module therm_pm72
[ Alper Nebi Yasak ]
* [ded7214] hook-functions: Handle dw_mmc-rockchip hidden dependency on
rockchip-io-domain
* [da85190] hook-functions: Include modules for Chromebook Plus display
[ Ben Hutchings ]
* [afd2668] debian/tests/control: Mark shellcheck test as superficial
* [9d8b690] mkinitramfs: Remove workaround for old udev versions
* [2b55aca] mkinitramfs: Remove special case for Arm OABI ports
* [a9e5169] mkinitramfs: Remove armhf dynamic linker hack
* [b19b6f3] debian/rules: Suppress execution of dh_installinitramfs
* [8330bcd] mkinitramfs: Use cp -p option for ld.so.conf* instead of -aZ
* [15fd713] initramfs-tools(7): Change example to use copy_exec instead of cp
* [c2d589e] Revert "mkinitramfs: check if initramfs has a shell"
* [835d584] mkinitramfs: Copy modules.builtin.bin into initramfs
(Closes: #948257)
* [0012977] init: Remove special case for kernel parameter resume=UUID=...
* [897ab77] update-initramfs: Make "-c -k all" options useful again
(Closes: #926401)
* [d6c6eec] init: Mount /dev with "exec" option if v86d is present
(Closes: #940171)
* [a9e73b5] hook-functions: Drop ext4dev from filesystem module list
* [41d9ceb] mkinitramfs: Enable multihreaded xz compression (Closes: #942144)
[ Alexander Volkov ]
* [e34affa] Don't require build dependency on shellcheck when nocheck profile
is enabled
[ Johannes 'josch' Schauer ]
* [e2ad678] hook-functions: preloaded libraries should not end up in the
initramfs (Closes: #944929)
[ Debian Janitor ]
* [a1e17fc] Bump debhelper from old 9 to 12.
* [4d86d1a] Set debhelper-compat version in Build-Depends.
[ Romain Perier ]
* [4df27e2] hook-functions: Add f2fs as base in auto_add_modules
[ Christian Göttsche ]
* [0db5752] Do not copy SELinux context in mkinitramfs (Closes: #948365)
[ Topi Miettinen ]
* [55afeec] Tighten permissions for /run/initramfs
-- Ben Hutchings <ben@decadent.org.uk> Sat, 18 Jan 2020 18:48:51 +0000
initramfs-tools (0.135) unstable; urgency=medium
[ Topi Miettinen ]
* [eb98d2e] init: /dev can be noexec and /run nodev
[ Alper Nebi Yasak ]
* [43488a3] hook-functions: Handle spi-rockchip hidden dependency on pl330
[ Ben Hutchings ]
* [116ce5c] autopkgtest: Only test hook and boot scripts from specific
packages
-- Ben Hutchings <ben@decadent.org.uk> Wed, 21 Aug 2019 23:06:28 +0100
initramfs-tools (0.134) unstable; urgency=medium
[ Ben Hutchings ]
* [8aeae9f] hooks/resume: Disable resume when there are no suitable swap
devices. Thanks to Trek <trek00@inbox.ru> (Closes: #916696)
* [40f6647] hook-functions: Include all keyboard driver modules when
MODULES=most. Thanks to Alper Nebi Yasak <alpernebiyasak@gmail.com>
* [797e5fe] hook-functions: Include cros_ec_spi and SPI drivers when
MODULES=most. Thanks to Alper Nebi Yasak <alpernebiyasak@gmail.com>
* [f65627d] resume: Set plymouth status only if there is a suspend image
(Closes: #928736)
* [c31a908] hook-functions: Fix copy_file with target of "/bin"
(Closes: #928689)
* [8a29ef3] scripts/functions: Use "reboot -f" to reboot on panic.
Thanks to Michael Niewöhner <linux@mniewoehner.de> (Closes: #923165)
* [da9f53e] unmkinitramfs: Work around lz4cat filename check.
Thanks to Dimitri John Ledkov <xnox@ubuntu.com> (Closes: #930366)
* [cf7bb4b] initramfs-tools-core: Depend on logsave or older e2fsprogs
(Closes: #932854)
* [8570718] update-initramfs(8): Document -d option as "delete" instead of
"remove"
* [fffe514] update-initramfs(8): Update description of "-k all" option
[ Benjamin Drung ]
* [5e94f22] autopkgtest: Check also
/usr/share/initramfs-tools/{hooks,scripts}
[ Alper Nebi Yasak ]
* [994d698] hook-functions: Include extcon-usbc-cros-ec when MODULES=most
* [4e3496a] hook-functions: Include extcon drivers when MODULES=dep
[ Uwe Kleine-König ]
* [37dcf3d] mkinitramfs: suppress warning when using bzip2 or lzma
(Closes: #930754)
-- Ben Hutchings <ben@decadent.org.uk> Sun, 28 Jul 2019 01:10:56 +0100
initramfs-tools (0.133ubuntu15) focal; urgency=medium
* mkinitramfs: Copy modules.builtin.bin into initramfs (LP: #1863261)
-- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Fri, 14 Feb 2020 15:05:29 +0000
initramfs-tools (0.133ubuntu14) focal; urgency=medium
* Handle both libgcc1 and libgcc-s1 locations.
-- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 04 Feb 2020 23:51:00 +0000
initramfs-tools (0.133ubuntu13) focal; urgency=medium
* Cherrypick upstream patch to include libgcc_s for libpthread. LP:
#1861757
-- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 04 Feb 2020 13:38:20 +0000
initramfs-tools (0.133ubuntu12) focal; urgency=medium
* debian/{control,rules}: Don't run shellcheck on i386 to avoid pulling
ghc into our minimal supported set for the newly-pruned architecture.
* scripts/functions: Fix args in the add_mountroot_fail_check function.
-- Adam Conrad <adconrad@ubuntu.com> Fri, 29 Nov 2019 12:16:07 -0700
initramfs-tools (0.133ubuntu11) focal; urgency=medium
* hooks/fixrtc, debian/rules: Stop pulling in coreutils date and hwclock,
instead using the slimmer and newly built-in busybox-initramfs applets.
-- Adam Conrad <adconrad@ubuntu.com> Mon, 04 Nov 2019 10:21:05 -0700
initramfs-tools (0.133ubuntu10) eoan; urgency=medium
* Add support for panic=-1 value (LP: #1831252)
-- Julian Andres Klode <juliank@ubuntu.com> Thu, 05 Sep 2019 12:31:43 +0200
# Older entries have been removed from this changelog.
# To read the complete changelog use `apt changelog initramfs-tools-bin`.
Generated by dwww version 1.16 on Sat Dec 13 16:16:05 CET 2025.