Age | Commit message (Collapse) | Author |
|
Signed-off-by: Ben Hutchings <benh@debian.org>
|
|
As these tests require installing an amd64 kernel package, they have
to be skipped on other architectures. Tthere is currently no way to
explicitly restrict them to specific architectures, so instead add the
skip-not-installable restriction.
Closes: #970184
Signed-off-by: Ben Hutchings <benh@debian.org>
|
|
* Change the linux-image-amd64 dependency to -amd64 | -generic:amd64
* Replace the LOCALVERSION variable with a SUPPORTED_FLAVOURS
variable, and have test-common loop over the flavours
* Change the dpkg-query pipeline that finds the kernel version
string to avoid assumptions about ordering and versioning of
dependencies
This should allow the tests to run on Ubuntu or its derivatives
without changes.
Signed-off-by: Ben Hutchings <benh@debian.org>
|
|
Signed-off-by: Ben Hutchings <benh@debian.org>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
For now, use MODULES=list.
I want to test with MODULES=dep too, but that will require putting a
Debian installation inside the VM so we can run mkinitramfs there.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
This should allow implementing various test cases without too much
repetition.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
|
|
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>
|
|
I'm now using benh@debian.org in debian/changelog, so make these
consistent.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
debhelper 12 wants to run dh_installinitramfs, but we don't want this
- in particular, because it makes initramfs-tools-core's maintainer
scripts run update-initramfs.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Fixes lintian: uses-debhelper-compat-file
See https://lintian.debian.org/tags/uses-debhelper-compat-file.html for more details.
|
|
Fixes lintian: package-uses-old-debhelper-compat-version
See https://lintian.debian.org/tags/package-uses-old-debhelper-compat-version.html for more details.
|
|
|
|
Running a static checker is not a substitute for proper integration
tests, which are still TBD.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
There are still other packages with hooks and scripts that shellcheck
finds fault with. This shouldn't cause a test failure for
initramfs-tools itself, but unfortunately that's what happens now:
https://ci.debian.net/data/autopkgtest/testing/amd64/i/initramfs-tools/2780481/log.gz
Replace the Test-Command with a script that tests only hook and boot
scripts installed by specific binary packages. We can expand this
list as and when other packages are updated.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
The fsck hook depends on logsave, which has moved from e2fsprogs
to a separate binary package.
Closes: #932854
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
klibc 2.0.5-1, kmod 26-1, and systemd 240-4 fixed their shellcheck
issues. So we can also check the whole /usr/share/initramfs-tools/hooks
and /usr/share/initramfs-tools/scripts directories.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
README hasn't been updated since the initial checkin in 2005, and
the old contents are obsolete: the original goals have either been
achieved or abandoned (we're not going to build udev against klibc),
and initrds are largely forgotten.
Replace these with a quick summary of what an initramfs is needed for,
how initramfs-tools does it, and a pointer to the manual pages.
Suggested-by: Robie Basak <robie.basak@ubuntu.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Make sure we don't include the copies of scripts under
debian/initramfs-tools{,-core}, or any non-shell executables.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
|
|
To keep the code in a clean state, run shellcheck on package build time.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
|
|
shellcheck found more issues than SC1074. Address most of these issues.
You can check the shell code by running:
```
shellcheck -e SC1090,SC1091 -s dash hook-functions $(find * -type f
\( -executable ! -name rules -o -regex '.*\.\(post\|pre\).*'
-o -regex "^\(docs\|scripts\)/.*" ! -name '*.md' \))
```
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
|
|
Fix lintian's complain file-contains-trailing-whitespace.
|
|
dpkg will only put a triggering package in the triggers-awaited state
if both it and the triggered package used "await". To allow for
packages that really need to await the initramfs update, explicitly
declare our trigger as "interest-await". (This is equivalent to the
old "interest", but fixes a lintian warning for the old name.)
Related-to: #822730
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Gbp-Dch: ignore
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
upstart will never be fixed, so it is correct to not specify a version.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
The document it refers to is no longer packaged.
Gbp-Dch: ignore
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Set Rules-Requires-Root: no. No other policy changes seem to be
relevant.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
The broken cryptsetup, elilo, lilo, s390-tools, console-setup,
systemd-sysv, and lvm2 versions are all older than jessie (current
oldstable). We can assume that they will have been upgraded without
an explicit Breaks.
kmod replaced module-init-tools in wheezy (current oldoldstable)
so there is no need to allow the latter as an alternative.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
I updated the wrong filename here when moving the initramfs-tools man
page.
Gbp-Dch: ignore
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
maintainer-notes.md (formerly .html) is only useful for those working
on the source package.
HACKING might be slightly useful to maintainers of other packages, but
initramfs-tools(7) is much more useful.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Manual pages that describe a general topic belong in section 7, not 8.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
[bwh: Resolved conflicts with lz4 support and updated Depends]
Closes: #845034
Thanks: Chris Lamb <lamby@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
Closes: #887211
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
|
|
This avoids update-initramfs taking an unnecessarily long time if there
is lots of activity on a different filesystem, or even hanging in cases
such as a stale NFS mount.
Based on a patch by Jukka Tastula <poltsy@gmail.com>.
Closes: #882380
LP: #1667512
Signed-off-by: Colin Watson <cjwatson@debian.org>
|
|
maks is no longer interested and Adam hasn't worked on the Debian
branches for a long time.
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|