- Sep 06, 2020
-
-
Ben Hutchings authored
This is needed for testing, and should also be useful for building more generic initramfs images. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
There are no real sections in this file. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
-
- Aug 31, 2020
-
-
Ben Hutchings authored
hppa and m68k have higher soversions for libgcc_s.so, so copy libgcc_s.so.[1-9] instead of assuming soversion 1. (I considered copying libgcc_s.so.*, but I'm unsure whether that will ever match extra development files that we don't want.) Closes: #959768 Signed-off-by:
Ben Hutchings <benh@debian.org>
-
Ben Hutchings authored
update-initramfs used to keep track of which initramfs images it created and "owned", to avoid overwriting the output of another coinstalled initramfs generator. As discussed in #765750, this is no longer a concern and the state checks have been removed. Now that I'm confident this hasn't caused a regression, also remove the state updates and the state directory. After this, there is no turning back: a downgrade will leave update-initramfs owning nothing. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
The direct invocation of update-initramfs in kernel package maintainer scripts was removed in: - Debian linux 2.6.39-1, thus in wheezy - Ubuntu linux 4.15.0-18.19 (I think), thus in bionic - kernel-package 12.001, thus in Debian squeeze and Ubuntu lucid Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
- Aug 19, 2020
-
-
Ben Hutchings authored
un-,mkinitramfs: add support for zstd Closes: #955469 See merge request kernel-team/initramfs-tools!33
-
Ben Hutchings authored
Prevents printf error carry over if wrong console is set Closes: #960355 See merge request kernel-team/initramfs-tools!30
-
Ben Hutchings authored
When overriding configured compressor, warn the user. See merge request kernel-team/initramfs-tools!31
-
- Jul 28, 2020
-
-
Norbert Lange authored
Add support for zstd compression and decompression. Always use multithreaded compression, as zstd still generates identical archives. The zstd cmdline tool is usually able to decompress gzip, xz, lzma and lz4 so make sure to try the tool early. Signed-off-by:
Norbert Lange <nolange79@gmail.com>
-
- Jun 19, 2020
-
-
Unit 193 authored
-
- Jun 08, 2020
-
-
Guilherme G. Piccoli authored
Currently the _log_msg() functions is "void" typed - with no return -, which in terms of shell means it returns whatever its last command returns. This function is the basic building block for all error/warning messages in initramfs-tools. It was noticed [0] that in case of bad console is provided to kernel on command-line, printf (and apparently all write()-related functions) 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 obviously if "quiet" is not provided in the command-line). The situation is easily reproducible and we can find various reports dating back some years. The reports usually are of the form "machine can't boot if wrong console is provided" or slightly different forms of that, almost always relating serial consoles with boot issues. This patch proposes a pretty simple fix: return zero on _log_msg(). We should definitely not brake the boot due to error log functions; one could argue we could fix checkfs() and that's true, until eventually we find another subtle corner case of "misuse" of the _log_msg() return value (after some debugging), and fix that too, and so on... W could also argue that printf shouldn't return error in this case, and although a valid discussion, it's not worth to have users waiting on a dilemma while boot is quite easy to brake, just by passing a wrong kernel parameter (or having the underlying serial console device changed to output to a different port than the previously set on kernel cmdline). [0] bugs.launchpad.net/cloud-images/+bug/1573095/comments/46 Signed-off-by:
Guilherme G. Piccoli <gpiccoli@canonical.com>
-
- May 24, 2020
-
-
Vagrant Cascadian authored
The Pinebook LCD disply does not show output until after the initramfs is loaded, which is too late to enter an encryption passphrase or debug issues with mounting the rootfs. Fix this by adding modules to "fb": analogix-anx6345, pwm-sun4i, sun4i-drm and sun8i-mixer.
-
- Apr 28, 2020
-
-
Ben Hutchings authored
I'm now using benh@debian.org in debian/changelog, so make these consistent. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
documentation.debian-projects.org seems to have gone away many years ago, but web.archive.org has a copy so link to that. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
This requires a heading row, so add one. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
This is a short document and there is no need to break it up this much. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
AP authored
I like to keep up with the official kernel releases. As a result the firmware they wind up requiring is newer than what is available in firmware packages. I placed the firmware from the git repo in /lib/firmware/updates/ which the kernel searches before /lib/firmware. Kernel can find them but update-initramfs cannot. I have attached an initial patch that solves this. I am currently using the resultng code and it is working fine for me. The one thing the patch does not do is allow for a custom location that can be provided to the kernel to search first. This is because that's a little more complicated and requires a decision wrt where to specify this location (ie the config file?). [bwh: Text above is from AP's bug report with minor edits; I added the subject line.] Closes: #956663 Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
These all seem to be harmless in practice, as the parameter values should not contain metacharacters. In _checkfs_once() *do not* quote $spinner or $force; if these are empty then we do not want to add arguments for them. Add a comment to suppress the warning. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
- Mar 29, 2020
-
-
Ben Hutchings authored
If we have a generic framebuffer device then there should be no need to set up any backlight in early boot. Also, backlight devices are sometimes handled by large drm drivers like i915 which we don't want to include by default. Fixes: da851903 ("hook-functions: Include modules for Chromebook ...") Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
- Jan 30, 2020
-
-
Ben Hutchings authored
It was logging the link target, not the name of the symlink. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
pthread_cancel() in libpthread.so.1 depends on functions in libgcc_s.so.0, but uses dlopen() to link to it rather than having a static dependency. Handle this dynamic dependency in copy_exec so that it doesn't have to be handled in every affected hook script. Closes: #950254 Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
- Jan 18, 2020
-
-
Ben Hutchings authored
Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Enable multithreading across all CPUs. Don't change the compression level as suggested, though. Users who still want faster compression should choose a different compressor. Closes: #942144 Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
This is obsolete since Linux 2.6.28. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
v86d currently maps parts of /dev/mem as executable, even though it may use an emulator. For now, only mount /dev with the "noexec" option if it's not present. Closes: #940171 Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
"update-initramfs -c -k all" used to re-create initramfs images if they had been deleted without using "update-initramfs -d", as it used the state directory to determine which kernel versions should have them. Since commit f39625af "update-initramfs: Make "-k all" take over other initramfs images", it ignores the state directory and is almost equivalent to "update-initramfs -u -k all". Change it to operate on all installed kernel versions. This will ignore which kernel versions suppressed initramfs generation, but I think it's reasonable to assume users won't use these options if they have installed such kernels. Closes: #926401 Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
This reverts commit 9f7bb9c7. All the keyword=value forms for block device naming are now handled in resolve_device. Related-to: #944777 Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
modinfo now prints an error message if modules.builtin.bin (created by depmod) is missing. Copy it in early if it's present. Closes: #948257 Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
This reverts commit 9c823ad2. It did not solve the problem it was intended to, because it used "$DESTDIR" in the destination argument to copy_exec and would therefore copy to /var/tmp/<something> inside the initramfs. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Executables should always be installed into the initramfs with copy_exec. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Do not copy SELinux context in mkinitramfs (Closes: #948365) See merge request kernel-team/initramfs-tools!25
-
Ben Hutchings authored
This is consistent with all the other copies into the initramfs. Signed-off-by:
Ben Hutchings <ben@decadent.org.uk>
-
Ben Hutchings authored
Tighten permissions for /run/initramfs See merge request kernel-team/initramfs-tools!22
-
Topi Miettinen authored
/run/initramfs contains a log file from fsck of root file system, which could perhaps contain sensitive information, for example if /home or /var are also located there and fsck is triggered. Let's tighten the permissions to 0700. Signed-off-by:
Topi Miettinen <toiwoton@gmail.com>
-
Ben Hutchings authored
Fix some issues reported by lintian See merge request kernel-team/initramfs-tools!21
-