Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
In Debian, this package doesn't exist as a .deb, so we must maintain our
own local copy of the languagelist file.
(This patch also adds code to synchronise this file to the Makefile's
"update:" target so this isn't too annoying.)
|
|
|
|
|
|
|
|
|
|
of /boot/vmlinuz*.
Kernel images installed the proper way from .deb packages are always
naming their kernel files vmlinuz-*. This way, we can avoid tampering
with completely customized kernels which handle initramfs on their own
(or completely different).
|
|
One complication with the interaction between live-initramfs and
update-initramfs is completeness - in a normal Debian system, we do not
mind that not all the initrds are updated, so one would simply call
"update-initramfs -u" when upgrading (for example) mdadm.
However, live-initramfs needs to update *all* initrds (ie. '-u -k all'),
but calling this would not use the trigger functionality as
'update-initramfs' will only accept triggering with a single '-u' argument.
This is sensible behaviour, as the trigger callback cannot (and shouldn't)
be parameterised. The result is this is that we must detect how many kernel
flavours we have and revert to the non-triggered call ('-u -k all') if we
have more than one.
My tests show that this is behaviour is sound, even in the slightly
contrived example of updating live-initramfs whilst installing a second
kernel, regardless of the interleaving of the calls to postinst.
We additionally attempt the same logic in the postrm so that upgrading
live-initramfs (for example, in chroot_local-packages) does not result in
two calls expensive calls in update-initramfs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Some klibc programs (cp, mount, umount) needs those libraries and
initramfs-tools cannot automatically adds them if needed.
|
|
|
|
|
|
|
|
people happy (Closes: #431000).
|
|
This patch goes some way towards fixing USB-backed persistence by
configuring the live initramfs to contain the "sd_mod" module and adding
a hacky workaround to a udev-related race condition.
For some reason, the usual udevtrigger/udevsettle pairing does not block
after we have loaded our USB modules and /dev/sda1 (for example) is ready.
Because of this, we sleep for a little while and break if a new block
device appears.
This seems to be a bug either in udev or in my understanding of how the
tool is meant to work. Some information may be gained from the casper bug:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/84591
Sleep-based hacks like this are really ugly, but I take some comfort in
finding them elsewhere in the source.
|
|
We are hardly likely to find persistent-related devices on RAM disks, so
we ignore them whilst searching.
|
|
This patch extends the find_files and find_cow_device utilities to search
known-working partition types (removing two "FIXME"s) and reworks the
syntax to use somewhat more readable case-statements.
|
|
This patch applies two fixes intended for when "scripts/live-helpers" is
sourced by a "set -e" script such as live-snapshot.
|
|
This patch vastly reworks the live-snapshot script; it fixes a number of
bugs related to argument handling (such as ignored parameters), as well
as improving the general robustness of the operation.
The script can also be run successfully with set -e and set -u, pending
some other patches in 'scripts/live-helpers'
|
|
|
|
|
|
|
|
|
|
|
|
We must configure a valid hostname in the target before 10adduser, or sudo
fails with "unable to resolve host (none)" - before 18hostname is called
/root/etc/hostname is empty.
This was resulting in the "su as sudo" modifications not being applied in
the target which was causing X configuration applications to show different
behaviours when attempting elevating their priviledges.
Reordering the hostname configuration seems somewhat preferable to
applying a hack inside 10adduser to use 'su' or similar, as other
pre-XXhostname calls may incorporate calls to sudo in the future.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
but also when it is empty.
|
|
|
|
|
|
|