summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
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-10-28initramfs-tools-0.92j from mirrrors.kernel.orgdebian/0.92jrbalocca
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
2007-08-07scripts/functions: style fix for maybe_break()maximilian attems
recover func from previous bogus change..
2007-08-07scripts/functions: Implement non-zero panic boot argmaximilian attems
sleep the passed time and then call reboot. works as arg can only be numeric.
2007-07-04scripts/local: make sure that fstype is always invokedmaximilian attems
2007-07-04revert vol_id usage for now, when more matured this can be easily rechanged.maximilian attems
2007-06-20scripts/local: add a q&d crude method to warn about renamed root devmaximilian attems
maybe this will reduce ration of bug reports, as further device renaming is in the pipes. :)
2007-06-11scripts/local: use simpler fstype invocationmaximilian attems
compatible with etch released klibc
2007-05-27scripts/nfs: fix when root-path includes server-ipmaximilian attems
2007-05-27scripts/init-premount/ps3: typo fixmaximilian attems
2007-05-27scripts/local: check for fs on rootnodeDavid Härdeman
some device node will exist before they can be safely used
2007-04-16nice usplash experiencemaximilian attems
tested both on my laptop as on qemu ubuntu merge
2007-04-16fix regexes to always use posix char classes and release 0.87maximilian attems
needs the -regextype posix-extended switch for find, also it seems 0.86 disgarded uselessly uppercase scripts (they might be distasteful ;)