summaryrefslogtreecommitdiff
path: root/update-initramfs
AgeCommit message (Collapse)Author
2010-06-22update-initramfs: run_bootloader() return after zipl and flash-kernelmaximilian attems
Spotted by mika, that those returns where missing. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-14code cleanup: consequently replace spaces in indentions with tabs to unify ↵Michael Prokop
coding stile Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-14hook-functions/mkinitramfs/update-initramfs: consequently output error ↵Michael Prokop
messages to stderr Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-13update-initramfs: Fix another unbound variablemaximilian attems
still uncovering things.. Closes: #583695 Signed-off-by: maximilian attems <maks@debian.org>
2010-06-02update-initramfs: use $* instead of $@Jonathan Nieder
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>
2010-06-02update-initramfs: fix unbound variables. [Closes: #583695]Michael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-04-07update-initramfs: Use nounsetmaximilian attems
better catch errors early.. Signed-off-by: maximilian attems <maks@debian.org>
2010-03-25update-initramfs: fix previous elilo commitmaximilian attems
sloppy coding without coffee
2010-03-25update-initramfs: only run elilo if configuredmaximilian attems
check for /etc/elilo.conf (closes: #534201) Signed-off-by: maximilian attems <maks@debian.org>
2010-03-25update-initramfs: Stop second guessing lilo usage.maximilian attems
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>
2010-03-24update-initramfs: -d delete .bak filemaximilian attems
as bonus rename confusing function. (closes: #559535) Signed-off-by: maximilian attems <maks@debian.org>
2009-09-25update-initramfs: allow -t takeover on deletemaximilian attems
needed to have idempotent delete
2009-04-21update-initramfs: Don't hardcode path for lilo or elilo.maximilian attems
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>
2009-04-18update-initramfs: Pass version to flash-kernelmaximilian attems
allows handling of different subarches. (closes: #523711) Reported-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: maximilian attems <maks@debian.org>
2009-04-03update-initramfs: Text exit code of command -v too.maximilian attems
same simplification. Signed-off-by: maximilian attems <maks@debian.org>
2009-03-30update-initramfs: Fix error message on wrong -k version argumentmaximilian attems
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>
2009-03-30update-initramfs: Run update on highest version instead of /initrd.img linkmaximilian attems
"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)
2009-03-30update-initramfs: mbr_check() use /boot/grub/grub.cfg for grub2 search.maximilian attems
only comes into play if lilo is installed too and usage is not configured by do_bootloader in /etc/kernel-img.conf. (closes: #427509)
2009-03-30update-initramfs: Cleanup run_bootloader()maximilian attems
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.
2009-03-19update-initramfs: set_linked_version() check if the links point to an ↵Michael Vogt
existing initrd.img [ first test existence before link and don't use bashism -maks ] Ubuntu merge 0.92bubuntu24
2009-01-12update-initramfs: Fix run_bootloader() to check for grub2maximilian attems
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)
2008-09-15update-initramfs: don't run glantank-update-kernelMartin Michlmayr
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).
2008-08-12update-initramfs: run_bootloader() invoke flash-kernel and ↵maximilian attems
glantank-update-kernel in case of triggered update-initramfs the latest initramfs should get flashed. thanks to Joey Hess <joeyh@debian.org>
2008-05-30update-initramfs: mbr_check() fix for /dev/md/X naming (closes: #469312)maximilian attems
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
2008-04-08update-initramfs: Rename function according to reliability fix.maximilian attems
purpose of function changed, now we keep the old initramfs on the real path until mkinitramfs run finished.
2008-04-08update-initramfs: Initramfs generation reliability fixes.Luke Yelavich
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 ]
2008-04-02update-initramfs: use dpkg-triggerJoey Hess
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.
2008-01-05update-initramfs: fix ro-mounted /boot check (closes: #458772)Daniel Reichelt
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
2007-11-28update-initramfs: Fix ro /boot partition check (closes: #451151)maximilian attems
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.
2007-09-04update-initramfs: Don't check for ro /boot inside of a chroot.maximilian attems
debian-live may as well be build on a host with ro /boot
2007-08-09update_initramfs tristate variable "all"maximilian attems
allow admin to set that an update-initramfs postinst call should update any known initramfs.
2007-08-09update-initramfs: enhance altered error message.maximilian attems
2007-04-05scripts/functions, mkinitramfs: better backup file handlingmaximilian attems
* 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.. :)
2007-04-02bootfixes: mount args don't like spacesmaximilian attems
restore_initramfs(): verbose output before action
2007-04-02update-initramfs: restore_initramfsmaximilian attems
restore initramfs on failure path
2007-04-02first prerelease 0.86 + merge 0.85fmaximilian attems
* 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
2006-12-14- show lilo error on lilo failuremaximilian attems
- 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
2006-12-02- allow to disable backupmaximilian attems
- new bzr location - functional copy_dir_modules() - modprobe a bunch of ppc windfarm modules in thermal - provide output on error
2006-11-04- check that an initrd is around before trying to backupmaximilian attems
2006-11-02- enhance mbr_check()maximilian attems
- fix /boot ro check - create fb devices unconditionaly
2006-10-18- improve run_bootloader (elilo, zipl)maximilian attems
- fix preinst sed command - bunch of minor fixes
2006-10-13last minute fixes update-initramfs:maximilian attems
- find against the correct backup - check if initramfs _really_ exists
2006-10-13whitespace policymaximilian attems
2006-10-13- add backup handling to initramfs-toolsmaximilian attems
- allow conservative settings for skipping updated initramfs. - debug output to screen - parse mbr for lilo + small fixes
2006-09-27- mkinitramfs: allow umask setting paranoidmaximilian attems
- revert an nfs changes small fixes over the place
2006-09-19- more nfs work (timeout, parsing, typo)maximilian attems
- lilo codeflow - add lasi700 scsi module
2006-09-12- another run_lilo improvementmaximilian attems
2006-09-12- check for ro /bootmaximilian attems
- allow -k all for all modes and more feedback on deleting - small whitespace cleanup
2006-09-01- fix destination of the mdrun.conf for partial sarge upgradesmaximilian attems
- checkout if /sbin/lilo is really there - guard more dirs against creation - add /etc/kernel-img.conf to reportbug output
2006-08-25- fix bashismmaximilian attems
- rename mdadm.conf in mdrun.conf - retry nfsmount - harden init - fix lvm boot script prereqs