summaryrefslogtreecommitdiff
path: root/conf
AgeCommit message (Collapse)Author
2018-07-18initramfs.conf: Update documentation of the DEVICE variableBen Hutchings
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-06-19mkinitramfs: Add LZ4 supportPaul Menzel
LZ4 creates bigger archives than XZ, but decompression time is only half as long on a ASRock E350M1 with an SSD, shaving off half a second from the overall boot time of four seconds. The patch is taken from Ubuntu [1] and has the change-log entries below. > initramfs-tools (0.130ubuntu4) bionic; urgency=medium > > [ Benjamin Tegge ] > * mkinitramfs: support lz4 as compress method (LP: #1488620) > > [ Balint Reczey ] > * unmkinitramfs: support lz4 as compress method > > -- Balint Reczey <rbalint@ubuntu.com> Wed, 11 Apr 2018 23:37:21 +0200 [1]: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1488620 Closes: https://bugs.debian.org/893845 Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
2018-06-05Make size of /run configurableBenjamin Drung
Using 10% of RAM for /run is a good default, but not suitable for all systems. 10% might be too small for system with less memory (e.g. virtual machine with 160 MiB RAM) or too big (VM host with 256/512 GiB RAM). A too small /run partition leads to not enough space on it. If the /run partition is huge, systemd's journald will consume lot of memory, because it defaults to using at most 15% of the respective file system of /run/log/journal. Adjusting the size of /run via an entry in /etc/fstab is not sufficient since journald calculates it limits before systemd remounts /run with the small size. Therefore journald could occupy the full /run partition with its logs. Allow specifying the size of /run by adding a RUNSIZE configuration variable and a initramfs.ramsize= boot argument. Mounting /run must be done after reading the configuration. Closes: #862013 Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2015-12-31Restore automatic selection between busybox and klibc by defaultBen Hutchings
Some systems are working alright with the old default of BUSYBOX=y and no busybox installed. We should only force use of busybox if another package installing initramfs scripts needs it. Change the default from BUSYBOX=y to BUSYBOX=auto, and give that the old semantics. Closes: #809204 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2015-12-06hooks/busybox: Fail if busybox is wanted but not foundBen Hutchings
Currently we silently fall back to klibc if BUSYBOX=y but we can't find it. This can result in an unusable initramfs, so fail instead of continuing. This mitigates bug #783297. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2014-10-16Add comment to /usr/share/initramfs-tools/modules that it is not a config fileBen Hutchings
/usr/share/initramfs-tools/modules looks like it could be a live configuration file, but it is not. Add a short comment to the file, then strip it when copying to /etc/initramfs-tools. Closes: #752789 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2012-06-15initramfs-tools Don't override root=/dev/nfs by BOOT=local configVagrant Cascadian
Specifying root=/dev/nfs doesn't really do anything without also either specifying boot=nfs or changing BOOT= in initramfs.conf: /dev/nfs) [ -z "${BOOT}" ] && BOOT=nfs ;; At which point, you could just as well not specify root=/dev/nfs at all. This breaks the historical method for network booting with nfsroot with the kernel arguments: ip=dhcp root=/dev/nfs I guess the check to make sure BOOT wasn't already set was changed in order to fix putting boot= anywhere in the boot commandline: http://bugs.debian.org/453294 But it seems to me the correct thing to do in that case would be to specify boot=live after root=/dev/nfs... since the order of the argument processing matters, rather than preferring the result of one argument over another. Why is BOOT=local defined in initramfs.conf at all? What about only setting BOOT=local if $BOOT is undefined, after all the argument processing is done. Closes: #677157 Signed-off-by: maximilian attems <max@stro.at>
2011-02-22mkinitramfs: Add support for xz compression.maximilian attems
Also add info to relevant config file. Reference: <20110216144546.GA20971@dali> Reported-by: trentbuck@gmail.com Signed-off-by: maximilian attems <max@stro.at> Reviewed-by: Michael Prokop <mika@debian.org>
2010-10-21Minor documentation fix in /etc/initramfs-tools/modules.Marc Herbert
"It seems to me that the "Loading essential drivers" step is unconditionnaly loading all modules listed in /etc/initramfs-tools/modules by the user, since the whole user list is inserted into in conf/modules inside the image." LP: #177263 Reported-by: Marc Herbert <marc.herbert@gmail.com> Signed-off-by: maximilian attems <max@stro.at>
2010-06-18fix typos in manpage, scripts/functions and conf/initramfs.conf - thanks lintianMichael Prokop
* paramater -> parameter * adress -> address * adress -> address * overriden -> overridden * correponds -> corresponds * correponds -> corresponds * Overriden -> Overridden * usualy -> usually Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-14code cleanup: drop trailing whitespaces.Michael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-04-10configure_networking(): work with empty DEVICE stringmaximilian attems
initramfs-tools currently requires a device to be hard-coded, but this is not much use if the network device is not known ahead of time. If the device specified in either /etc/initramfs-tools/initramfs.conf or on the ip=xxx kernel command line. usefull for multiple net devices. Based on patch by Tim Small <tim@seoss.co.uk> Closes: #566295, #575766 Reviewed-by: Vagrant Cascadian <vagrant@freegeek.org> Signed-off-by: maximilian attems <maks@debian.org>
2010-04-09mkinitramfs: add LZO supportbert schulze
Albin Tonnerre sent a patch fixing the initramfs LZO decompression, so heres my fix for initramfs-tools to have compete compression support. Tell me if you want me to open a new bugreport. On a side note: this will only work with a patched kernel (might be upstream with 2.6.34), its a good idea to include a warning for those running 2.6.33 from experimental [ adding it on TODO of Lenny linux-2.6 2.6.32 ] Signed-off-by: maximilian attems <maks@debian.org>
2010-04-04initramfs-tools: support different compression tools in mkinitramfsbert schulze
this version uses /etc/initramfs-tools/initramfs.conf to determine the compression method, checks kernel and userspace support with fallback to gzip. Since LZO didnt work for me at all with 2.6.33 I left that out for now. (closes: #533903) [ minor changes in mkinitramfs code ] Signed-off-by: maximilian attems <maks@debian.org>
2010-03-24update-initramfs: Default to not keep .bak backupsBen Collins
we don't need to any more. TODO: lilo might still want .bak's. [ merge 0.92bubuntu9 + fix manpage note: indeed the precaution seems no longer needed these days, but is potentially harmful when /boot space is small. ] Signed-off-by: maximilian attems <maks@debian.org>
2009-07-29Redefinde MODULES=most to not carry any fb driver per default.maximilian attems
this allows for a much smaller initramfs and thus faster boot. Signed-off-by: maximilian attems <maks@debian.org>
2008-09-15update initramfs.confMartin Michlmayr
Now that d-i won't create /etc/initramfs-tools/conf.d/driver-policy in all cases, I think reference to is mostly useless.
2008-09-12initramfs.conf: Mention possible value overriding by d-i for example.Martin Michlmayr
Please mention in initramfs.conf that the values specified there can be overriden via /etc/mkinitramfs/conf.d. This is important since d-i will now use /etc/initramfs-tools/conf.d/driver-policy to set MODULES.
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-04-12Add support for loading keymaps. (closes: 337663)David Härdeman
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-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-07-24- add BUSYBOX section to confmaximilian attems
- add myri10ge, smc911x and hptiop modules - fix check_minkver() logic - escape resume variables - fix SEE ALSO section in all manpages - source /usr/share/initramfs-tools/conf.d/* - check against modules.dep before running depmod - more verbose output - open console with -i for dash interactive - fix resume param by LABEL or UUID - lvm has new prereq mdadm - update-initramfs fix -v calling - functions/scripts replace basename usage with shell expansion
2006-07-07- mkinitramfs take care of eventual missing depmod runmaximilian attems
- do the migration from mkinitramfs in preinst - sed the modules file so that it looks pretty some than ours - polish modules file - allow BUSYBOX=n
2006-07-02woow pile of stuff turned up:maximilian attems
- cleanup of activate_vg() in lvm boot script - use less of busybox utilities - conf.d for BUSYBOX=y usage for the packages - don't poke on conffile for RESUME - use printf instead of expr (ooh ash and dash are *fun*) - fix update-initramfs to use current_version when no other version exists around
2006-02-27sync with ubuntu22 + some handmergesmaximilian attems
2005-12-12get ready for the release:maximilian attems
remove traling whitespace in the conffile remove debugging "set -x"
2005-12-05fix wording in initramfs.conf regarding resume option.maximilian attems
2005-11-02fix reference to manpage.maximilian attems
2005-09-20reoder initramfs.confmaximilian attems
2005-09-19remove unused BUSYBOX variablemaximilian attems
2005-08-16Cleanup commit, sorry for the messJeff Bailey
2005-06-21* Default to currently running kernel version.Jeff Bailey
Based on a patch from maximilian attems, thanks! * Handle module arguments in /etc/mkinitramfs/modules * Do hookscripts at generation time. Drop things into /usr/share/initramfs-tools/hooks or /etc/mkinitramfs/hooks * Make sure local-bottom and nfs-bottom get created Thanks to Karl Hegbloom for these three patches! * Prune stray echo from call_scripts * Load raid1 for now so that md setups will work. * Detect ide modules load Thanks to Jeff Waugh for initial testing of this!
2005-06-17Use /sbin, do depmod at boot time, copy all the interesting hardware drivers ↵Jeff Bailey
onto the initramfs
2005-06-08Initial checkinJeff Bailey