diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2018-07-25 20:25:12 +0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2018-07-26 01:16:31 +0800 |
commit | c0ae42ba8eda4be9e416a43ee9ee7fd32cf37725 (patch) | |
tree | 0b4d3c8ef5146b4080d56b1aebc265814a44aad9 /update-initramfs.8 | |
parent | 312393b0cf1231125eeff3d1a2b6b778a935c21d (diff) |
update-initramfs: Always take over other initramfs images
In Debian, update-initramfs has always refused to overwrite or delete
an initramfs image that it didn't create, unless the -t option is
used. On Ubuntu, this check is apparently disabled. The commit log
doesn't provide much of a clue as to why. Looking at the the state of
Debian and the linux-2.6 package at the time, I think the reasoning
must have been something like:
(1) Multiple initramfs/initrd generators were available and could be
coinstalled. The configuration file /etc/kernel-img.conf specified
which one kernel packages should invoke ("ramdisk" variable).
(2) Packages that hooked into initramfs-tools would always run update-
initramfs if it existed, and it would immediately update the
initramfs, because triggers hadn't yet been invented.
(3) To keep the alternate initramfs generators working, update-
initramfs therefore had to either (a) check the configuration file to
find out whether initramfs-tools was meant to be used, or (b) keep
track of which initramfs images it created and therefore "owned".
At this point, (1) is no longer true; the "ramdisk" variable is not
honoured and the initramfs generator to be invoked is chosen by
installing one of several conflicting packages. I think this means
that (3) no longer follows, and whichever of the automatic initramfs
generator packages is currently installed should be considered to
"own" /boot/initrd.img-<version> for all kernel versions.
This commit only disables the checks. The state directory and the
state updates are retained for now, in case it becomes necessary to
revert this change.
Closes: #765750, #804295
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'update-initramfs.8')
-rw-r--r-- | update-initramfs.8 | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/update-initramfs.8 b/update-initramfs.8 index 4bcf756..bb88499 100644 --- a/update-initramfs.8 +++ b/update-initramfs.8 @@ -54,10 +54,6 @@ This mode updates an existing initramfs. This mode removes an existing initramfs. .TP -\fB \-t -Allows one to take over an custom initramfs with a newer one. - -.TP \fB \-v This option increases the amount of information you are given during the chosen action. |