summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2009-09-25blacklist boot hook write to /etc/modprobe.d/initramfs.confTormod Volden
Newer modprobe will only look at .conf files. (closes: #541864) Signed-off-by: maximilian attems <maks@debian.org>
2009-07-29nuke framebuffer boot scriptmaximilian attems
fb should be loaded after initramfs by init to have a beautiful userland. allows faster boot not to try parsing crazy things with only posix sh at our hands. this will need a README.DEBIAN section as noone is now currently loading fbcon. Signed-off-by: maximilian attems <maks@debian.org>
2009-07-29nuke thermal hooksmaximilian attems
thrive for a smaller initramfs, were loading of the modules is so fast that acpi should be loaeded by udev after init(8) call. Signed-off-by: maximilian attems <maks@debian.org>
2009-06-16scripts/init-top/framebuffer: i915 needs intel-agp tooAaron M. Ucko
The i915 DRM module doubles as a framebuffer of sorts, at least in kernel mode-setting setups; like its cousins intelfb and i810fb, it effectively requires intel-agp despite not actually using any of its symbols. As such, could you please arrange for scripts/init-top/framebuffer to give it the same treatment, per the following patch?: (closes: #533258) Signed-off-by: maximilian attems <maks@debian.org>
2009-04-03cleanup LABEL handling codemaximilian attems
make it more concise: * use POSIX ${parameter:+word} * replace *[/]*) by just */*) * test exit code of command -v rather then running test -x on it while we are at it fix another command -v usage in scripts/functions. Reviewed-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: maximilian attems <maks@debian.org>
2009-04-02mkinitramfs: Allow dots in boot and script filenames.maximilian attems
the regex was overly severe not allowing dots althoug they are useful as word ending. based on a patch in launchpad, that didn't get all occurences right, but was a good start. (LP: #305837)
2009-04-02init-top/framebuffer: syntax fix.maximilian attems
fix wrong merge of e184c8c2a9ad4520cf0cf4536301c6ae6206e911 scripts/init-top/framebuffer: 84: Syntax error: ")" unexpected (expecting ";;")
2009-03-31init-top/framebuffer: Load intel-agp for intelfbMaik Zumstrull
After further experimentation, I discovered additional problems that my first patch did not address, namely that 1) Some FB drivers need the AGP subsystem up and running before they are loaded and 2) intelfb needs intel-agp.ko, but does not have a dependency on it. intelfb does not actually *work* on my testsystem after this (it crashes), but unlike with plain initramfs-tools, it loads (and prints something useful if loaded with the probeonly option). I'll try to find out why it fails to work tomorrow; it's probably an unrelated issue. [ make the patch applyable, probably whitespace damaged, fix comments, no need to pass -q to modprobe that is set globaly -maks ] (closes: #416063, #455876) Signed-off-by: maximilian attems <maks@debian.org>
2009-03-20init-top/framebuffer: ignore blacklist for forced vga= usage.Ben Collins
DO NOT USE -Qb for framebuffer. Blank ttys when using vesafb (vga=xxx) LP: #129910 [ s/-Q/-q/ for modprobe options -maks ]
2009-02-23init: export ip root param for configure_networking()maximilian attems
while at it cleanup the variable name that came due to legacy naming nfsopts in a very early initramfs-tools release. "The local-top/iscsi initramfs integration script uses the configure_networking function, which depends on the IPOPTS environmental variable set by the init script. However, this variable is not available, because it's not exported from init, and local-top/iscsi is not sourced but executed. Thus static IP configuration on the kernel command line is not communicated to the script." (closes: #516746) Reported-by: Ferenc Wagner <wferi@niif.hu>
2009-02-17scripts/local-premount/resume: Fix resume with LABEL containing '/'.maximilian attems
do the same dance here, same code, just slightly renamed variables.
2009-02-17allow root=mtd0 to be used; skip root checks if ROOT doesn't start with /dev.Andres Salomon
The attached patch is needed for booting with root=mtd0. Basically, the init scripts assume the root device should have a special device file somewhere, and if not will wait for it to appear. This patch changes it so that it only waits for a device file to appear if $ROOT starts with "/dev". In the case of things like ROOT=LABEL=foo, the init scripts will translate that to a device. With ROOT=mtd0, the init scripts will not check for a device, and will successfully mount the root filesystem. Signed-off-by: Andres Salomon <dilinger@debian.org>
2009-02-13thermal boot script: Don't load thermal+fan on acpi=offmaximilian attems
(closes: #514997) Reported-by: Michael Prokop <mika@grml.org>
2009-02-05nuke old lvm hook scriptsmaximilian attems
since Lenny lvm2 ships it's own hooks scripts, no need to dup.
2009-01-07configure_networking: Raise ipconfig timeout to 180 seconds.maximilian attems
in 0.92m, the timeout for ipconfig in scripts/functions was set to 60 seconds. This broke our iscsi-rootfs setups. It took me a while to debug this, but it seems that 60 seconds is not enough for switches which have spanning-tree enabled, they need some more time before they take up a port, in our case between 62 and 65 seconds. (closes: #511085)
2008-12-18all_generic_ide: Also parse boolean bootoptionmaximilian attems
d-i uses to pass it with the value 1 Reported-by: Frans Pop <fjp@debian.org>
2008-12-15fix redboot partition supportAndres Salomon
Fix buglet in parse_numeric where *:* would match mtd:root. We only want to match numbers. This fixes redboot partition support. Signed-off-by: Andres Salomon <dilinger@debian.org>
2008-12-15scripts/functions: comment fix path to moved linux-2.6 Documentation.maximilian attems
2008-12-15Revert "framebuffer: Let udev create fb devices."maximilian attems
udev isn't started at this point and therefore can't create framebuffer devices. This causes usplash not to run on PS3. set sane permissions will making the char files. This reverts commit 0aec8b0c22b7622841c4ab7a3b492b4d2657456f.
2008-12-15framebuffer: Add support for uvesafbMichal Pokrywka
Uvesafb framebuffer driver needs v86d userspace program but when fb driver is modprobed at init-top stage of initrd, /dev/zero and /dev/mem are missing because udev have not been run yet.
2008-12-14scripts/functions: fix not set break variablemaximilian attems
thanks martin f krafft <madduck@debian.org> closes: #502058
2008-12-14scripts/functions: Wrong check for udevadm in functionsJulien Danjou
2008-12-14scripts/functions: Call ipconfig with a one-minute timeoutColin Watson
rather than waiting forever (LP: #182940).
2008-09-02Fix parse_numeric() to ignore non hex root string prefixesAndres Salomon
On OLPC machines, root is a nand device that is mounted as mtd0 (it is neither a block device nor a char device). The arguments passed to the kernel are "ro root=mtd0 rootfstype=jffs2". Unfortunately, attempting to use an initrd based upon initramfs-tools on such a machine results in a kernel panic and a syntax error. Begin: Mounting root file system ... /init: line 172: syntax error: 0xmtd0 The probably appears to be in parse_numeric(); the init scripts assume that normal devices are always prefixed with /, and root= strings that aren't are raw device numbers (prefixing them with 0x). I'm not sure if there are other devices similar to mtd that don't begin with a /. How about something like the following patch? It's not foolproof, but it at least ignores things that can't possibly be hex strings. fixes partially #497133
2008-08-15wait_for_udev: s/udevsettle/udevadm/ for upgrades after Lennymaximilian attems
after lenny the symlink of udev is meant to be gone, support partial upgrades from lenny.
2008-08-12make log_begin_msg not emit trailing newlineChris Lamb
Please make log_begin_msg not emit a trailing newline - this makes the non- "quiet" output cleaner and results in half as many lines being emitted. For example: Begin: Finding root filesytem ... Done. Becomes: Begin: Finding root filesytem ... done. Patch attached - it also adds a space and alters the case of "done" for symmetry. This would be especially useful in Debian Live where we show a large number of these messages by default. (closes: #494257)
2008-07-05release 0.92dmaximilian attems
2008-07-05usplash pulsates: drop code to increment a progress bar after each message.maximilian attems
ubuntu sync
2008-07-05add boot script loading ide-generic on all_generic_ide cmdlinemaximilian attems
thanks to Frans Pop <elendil@planet.nl> for report, idea stolen from Ubuntu, adapted their boot script same boot param. closes: #485786 Signed-off-by: maximilian attems <maks@debian.org>
2008-07-05Merge more meaningful text for no root device panic from Ubuntu.maximilian attems
Debian users were pasting that without getting the real trouble, thanks for the better rephrasing.
2008-07-05wait_for_udev(): simplify, no need for logging.maximilian attems
add small comment on top, what for we need it. Signed-off-by: maximilian attems <maks@debian.org>
2008-07-03Wait for udevsettle after $BOOT-top scripts ranmartin f. krafft
udev may be busy creating links for the root device by the time mountroot is called. udevsettle makes sure these are processed. I thus call udevsettle with a timeout of 10 seconds after the $BOOT-top scripts have run and before the ROOTDELAY hack kicks in. I thought about doing this with a local-top script instead, but there is no way to ensure that it'll run last; cryptsetup uses a hack to make sure it runs last, if we also use the same hack, there'll be a dependency loop. Signed-off-by: martin f. krafft <madduck@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2008-07-03init: Remove extra ellipsesmartin f. krafft
log_begin_msg already puts ... at the end of the stuff it prints, so no need to have it in there explicitly. Signed-off-by: martin f. krafft <madduck@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2008-04-07resume: Add support for resume_offset swap file suspend to disk.maximilian attems
Parse cmdline for resume_offset, export it and pass it to the klibc resume binary. Based on a patch by Alan Jenkins <alan-jenkins@tuffmail.co.uk>. Bonus small codingstyle clean up of local-premount/resume.
2008-04-02configure_networking(): guard against unset "${DEVICE}"maximilian attems
found on testing that configure_networking() shouldn't make assumption that ${DEVICE} is really already set. this still allows to bail out if device is passed and set.
2008-04-02ps3 nuke useless hardcoded initramfs script.maximilian attems
udev takes care to load the relevant modules. also PS3PF never had landed in debian thus pretty useless to take care of it just nuke it and be happy that udev loading is fixed since 2.6.23-rc1.
2008-03-31ps3: load the newer modules.maximilian attems
based on a patch by Luke Yelavich <luke.yelavich@canonical.com>.
2008-03-31scripts/functions: fix configure_networking() for multiple interfaces.maximilian attems
IPOPTS can be assumed to get passed :::::: and thus configure any possible interface. we have thus also to source the relevant ipconfig output :) based on a patch by Michal Sojka <sojkam1@fel.cvut.cz>: "If I want several computers to boot from the same ramdisk (with NFS root) and some computers have multiple network interfaces, the DEVICE variable can't be set to a specific value (e.g. eth0). Ipconfig from klibc supports a mode, where DHCP request is sent to all interfaces and the one receiving the first DHCP offer is used. This perfectly suits my needs, but it can't be used with initramfs scripts because the interface name in not known in advance and the DEVICE variable is set to something like ::::::."
2008-03-30scripts/function: Use mknod directly.maximilian attems
No need to call chmod later on, now that klibc mknod can set permissions.
2008-03-25framebuffer: Leave tty devices for udev too.maximilian attems
udev creates tty devices too, in the case of not using udev, we need to ship more anyway, so no need to worry about that right now.
2008-03-25framebuffer: Let udev create fb devices.maximilian attems
nuke fb device mknod creation as udev creates the fb device nodes. suggested by waldi. positive test on qemu with usplash. let's see if we get a bad interaction with usplash and vga=XXX boots.
2008-02-15configure_network(): do nothing if device already configureddebian@x.ray.net
This patch is part of three patches (initramfs-tools, cryptsetup, dropbear) which enable mkinitramfs to create initramfs that provide the ability to log in and unlock a cryptroot during the boot process from remote via ssh. Calling configure_networking from /scripts/functions might appear more than once, so just try if it hasn't been done/wasn't successful yet. Check that by testing for existence of /tmp/net-$DEVICE.conf which is created by ipconfig.
2007-12-26local-premount/resume: coding style fixes.maximilian attems
2007-09-05scripts/init-top/framebuffer: fix variable nameMichael Prokop
s/fbnum/fbno/
2007-09-04initramfs-tools: split networking code into separate functionVagrant Cascadian
ltsp in ubuntu started using NBD+unionfs+squashfs instead of NFS, and debian-live uses has a network boot methods using cifs in addition to a different way of using NFS (i think it also uses unionfs and maybe squashfs, not just a plain NFS/cifs mount)... so splitting out the networking related code into a separate function would move towards not having forked code for all of these different network boot methods. at least, that's my hope.
2007-09-01init-top/framebuffer: Check that fb minor is below 32.maximilian attems
you can only have up to 32 fb devices going from fb0 to fb31.
2007-08-25scripts/local: small CodingStyle quote readonly variablemaximilian attems
2007-08-25initramfs-tools: axe udev_helpermaximilian attems
2007-08-15scripts/functions: simplify panic()maximilian attems
sleep can take arg 0
2007-08-08scripts/funtions: run_scripts() on verbose mode add error messagesmaximilian attems
* add the error messages * fix double call to set_initlist * skip empty dirs at start