Age | Commit message (Collapse) | Author |
|
Conform to policy
http://kernel-handbook.alioth.debian.org/ch-update-hooks.html#s-initramfs-hooks
We check that the dir exists to no longer invoke boot loader on our
own for squeeze, but work on partial upgrades from lenny.
The bootloader invocations can be removed postsqueeze.
Signed-off-by: maximilian attems <maks@debian.org>
|
|
Brought no gain in code readability and lots of bug reports.
Closes: #588915
Suggested-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: maximilian attems <maks@debian.org>
|
|
Signed-off-by: Michael Prokop <mika@debian.org>
|
|
Spotted by mika, that those returns where missing.
Signed-off-by: maximilian attems <maks@debian.org>
|
|
coding stile
Signed-off-by: Michael Prokop <mika@debian.org>
|
|
messages to stderr
Signed-off-by: Michael Prokop <mika@debian.org>
|
|
still uncovering things..
Closes: #583695
Signed-off-by: maximilian attems <maks@debian.org>
|
|
Use "$*" where it makes the quoting behavior easier to understand.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Reviewed-by: Michael Prokop <mika@debian.org>
|
|
Signed-off-by: Michael Prokop <mika@debian.org>
|
|
better catch errors early..
Signed-off-by: maximilian attems <maks@debian.org>
|
|
sloppy coding without coffee
|
|
check for /etc/elilo.conf
(closes: #534201)
Signed-off-by: maximilian attems <maks@debian.org>
|
|
If people have both lilo and grub installed they need
to figured out on their own, what they want.
The mbr detection is error prone and a nice hack,
but has survived it's time now that grub.cfg would need
to be parsed in a different way.
warn people that they should act.
(closes: #574553)
Signed-off-by: maximilian attems <maks@debian.org>
|
|
as bonus rename confusing function.
(closes: #559535)
Signed-off-by: maximilian attems <maks@debian.org>
|
|
needed to have idempotent delete
|
|
elilo seems to be installed in /usr/sbin/ and thus wasn't run.
(closes: #524928)
Reported-by: dann frazier <dannf@hp.com>
Signed-off-by: maximilian attems <maks@debian.org>
|
|
allows handling of different subarches.
(closes: #523711)
Reported-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: maximilian attems <maks@debian.org>
|
|
same simplification.
Signed-off-by: maximilian attems <maks@debian.org>
|
|
update-initramfs -k $(uname -a) -t -u
You must specify at least one of -c, -u, or -d.
[..]
which is wrong as -u was reported.
Reported-by: Michael Prokop <mika@grml.org>
|
|
"Ah. there were symlinks in / - tho they were never ever used on this
system.
Seems pretty broken to rely on symlinks that might (and are) years out
of date."
Reported-by: Peter Palfrader <weasel@debian.org>
so no longer rely on this links like since 0.65,
but use the "latest" according the dpkg higher heuristic check.
that should make people more happy!
also the symlinks should be phased out, only fallback to them
if set_highest_version() finds nothing.
(closes: #493863)
|
|
only comes into play if lilo is installed too and usage is not
configured by do_bootloader in /etc/kernel-img.conf.
(closes: #427509)
|
|
rework it's logic, instead of 2 nested top ifs use one if
with 2 "&&" connected checks. gets us rid of one nested level.
simplify codeflow inside too as bonus.
make clear why mbr_check() is run.
|
|
existing initrd.img
[ first test existence before link and don't use bashism -maks ]
Ubuntu merge 0.92bubuntu24
|
|
makes it respect "do_bootloader = no" if both lilo and grub2 are
installed.
simplify grub check as both grub2 and grub have an update-grub script.
based on patch and report by Clint Adams <schizo@debian.org>
(closes: #511514)
|
|
glantank-update-kernel has been merged into flash-kernel and
glantank-update-kernel will now call flash-kernel for compatibility.
So there's no need to run glantank-update-kernel anymore.
In case you do another upload for lenny, please include this patch.
But there's no reason just to upload for this since nothing will break
with the current initramfs-tools (although flash-kernel will be ran
twice).
|
|
glantank-update-kernel
in case of triggered update-initramfs the latest initramfs should get
flashed.
thanks to Joey Hess <joeyh@debian.org>
|
|
update-initramfs: Generating /boot/initrd.img-2.6.22-3-k7
awk: /^md/2/{print substr($5, 1, 3)}
thuse the initramfs will not be generated properly
|
|
purpose of function changed, now we keep the old initramfs
on the real path until mkinitramfs run finished.
|
|
Attached is a patch to improve the way update-initramfs handles the
generating of new or updated initramfs images for kernels. It puts in
place a few measures to ensure that if there is not enough disk space on
/boot, a previous initramfs is still in tact, to allow the booting of
that kernel. The patch applies against current git head. See the Ubuntu
specification found at the following URL for more information:
https://wiki.ubuntu.com/HardyInitramfsErrorHandling
This patch does the following:
* When generating a new initramfs, instead of copying the old initramfs to a
backup file, it hard links it instead, so no more space is used than
necessary. it only copies to the backup file in the event that the filesystem
on /boot doesn't support hard links, eg FAT32 partitions.
* A new file is used to generate the initramfs. If the generation succeeds, it
is moved to the original initramfs's location, ready to use. If it fails, the
original initramfs is not affected, allowing it to be used at boot.
[ wrap on long line -maks ]
|
|
This is a lightly modified version of Ian Jackson's original patch,
incorporating maximilian attems's comments.
dh_installdeb automatically installs the triggers file, so the rules file
does not need to be changed.
|
|
Hi Kernel-Team,
i stumbled over this bug when I wanted to update my initrd while I had
some isos loop-mounted like this:
$ cat /proc/mounts |grep boot
/dev/hda1 /boot ext2 rw 0 0
/dev/loop57 /srv/pub/iso_loop/sys/bootrescue-cd-20071129-59 iso9660 ro 0
0
/dev/loop58 /srv/pub/iso_loop/sys/bootrescue-cd-dev iso9660 ro 0 0
/dev/loop59 /srv/pub/iso_loop/sys/bootrescue-dvd-20071129-59 iso9660 ro
0 0
/dev/loop60 /srv/pub/iso_loop/sys/bootrescue-dvd-dev iso9660 ro 0 0
The check for a ro-mounted /boot partition was falsly triggered by the
mount targets of the iso-images. As you can see in the patch attached,
for the conditional awk output to work as desired, another pair of hyphen
enclosing the awk match calls is required.
HTH,
Daniel Reichelt
|
|
Newer kernel in the effort of killing /etc/mtab show mount options,
like errors=remount-ro, that is matched for read only.
Thanks Jan Niehusmann <jan@gondor.com> for report.
|
|
debian-live may as well be build on a host with ro /boot
|
|
allow admin to set that an update-initramfs postinst call
should update any known initramfs.
|
|
|
|
* don't panick on backup files on boot, just ignore them
* don't include backup file in initramfs
* cleanup changelog
this is quite a fundamental change need to double check
that it works on nfs root too.. :)
|
|
restore_initramfs(): verbose output before action
|
|
restore initramfs on failure path
|
|
* kick mdrun script
* update control for lenny + ubuntu
* add _all_ ide, block and drivers
* use MODPROBE_OPTIONS and kill any modprobed arg
* small doc + whitespace fixes
|
|
- add hppa zalon module
- reduce size due to keeping only 1 busybox copy
- warn on update mode when no initramfs exist and takeover not specified
|
|
- new bzr location
- functional copy_dir_modules()
- modprobe a bunch of ppc windfarm modules in thermal
- provide output on error
|
|
|
|
- fix /boot ro check
- create fb devices unconditionaly
|
|
- fix preinst sed command
- bunch of minor fixes
|
|
- find against the correct backup
- check if initramfs _really_ exists
|
|
|
|
- allow conservative settings for skipping updated initramfs.
- debug output to screen
- parse mbr for lilo
+ small fixes
|
|
- revert an nfs changes
small fixes over the place
|
|
- lilo codeflow
- add lasi700 scsi module
|
|
|