summaryrefslogtreecommitdiff
path: root/scripts/local
AgeCommit message (Collapse)Author
2010-06-17pre_mountroot(): reduce timeout to 30 secondsmaximilian attems
giant disk arrays, clusters will need to provide their own rootdelay= boot arg, they should have capable admins. 3 minutes wait is just too long for regular users. sync from ubuntu 0.96.1ubuntu1. Acked-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2010-06-16hook-functions/init/scripts/local: add support for ubifs.Martin Michlmayr
MODULES=dep fails when / is ubifs. This patch adds support for something like root=ubi0:rootfs when ubi is modular. Quoting Martin: It essentially does three things: - adds the correct modules to the ramdisk (for MODULES=dep and MODULES=most) - reads ubi.mtd= from the command line - loads ubi with the ubi.mtd info and ignores the "Waiting for root" check I've successfully tested this with a kernel with modular ubi and with the following boot variants: console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs console=ttyS0,115200 ubi.mtd=2 root=ubi0_0 rootfstype=ubifs With console=ttyS0,115200 ubi.mtd=2 root=/dev/ubi0_0 rootfstype=ubifs I get an error that it cannot mount root but I suspect this is an ubifs error and has nothing to do with i-t (since at this point I can manually mount it with -t ubifs ubi0_0 whereas the /dev/ variant doesn't work). Tested with MODULES=dep and MODULES=most as well as with a kernel that has ubifs built in. Closes: #582858 Thanks: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Reviewed-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-04scripts/functions: add get_fstype() from scripts/localmaximilian attems
allows wider usage. (closes: #487409) Reported-by: Christoph Anton Mitterer <calestyo@scientia.net> Signed-off-by: maximilian attems <maks@debian.org>
2010-02-25scripts/local: fix blkid invocationmaximilian attems
49337bd looks bogus. It adds the test "[ command ... ]" but I think that should be just "command ..." Reporte-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: maximilian attems <maks@debian.org>
2010-01-30scripts/local: Use blkid as backup fstype detectionmaximilian attems
if blkid is on initramfs use it. Thanks to Joey Hess <joeyh@debian.org> for calling syntax. Signed-off-by: maximilian attems <maks@debian.org>
2010-01-30scripts/local: avoid mount -t unknownJoey Hess
Since fstype does not support btrfs (#548047), and since udev 150, vol_id no longer exists, get_fstype sets FSTYPE to "unknown", and then the root filesystem is mounted using "mount -t unknown /dev/hda2 /root". Of course, that fails, and with a really unhelpful error message ("mount: device doesnot exist") Why not just skip the -t parameter if FSTYPE=unknown? Mounting the root fs was going to fail, so letting mount autodetect the fs type can't be worse. Attached patch does that and got my root on btrfs working. Workaround: boot with rootfstype=btrfs Signed-off-by: maximilian attems <maks@debian.org>
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>
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-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>
2007-08-25scripts/local: small CodingStyle quote readonly variablemaximilian attems
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/local: check for fs on rootnodeDavid Härdeman
some device node will exist before they can be safely used
2007-04-14Revert NACK'ed changeDavid Härdeman
2007-04-13Use -Qb for for module loading to honor blacklists.David Härdeman
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-10-18- improve run_bootloader (elilo, zipl)maximilian attems
- fix preinst sed command - bunch of minor fixes
2006-09-04- better nfs handling: merge vagrant branch :) + local changesmaximilian attems
- cleanup stupid whitespace all over the place
2006-08-25- fix bashismmaximilian attems
- rename mdadm.conf in mdrun.conf - retry nfsmount - harden init - fix lvm boot script prereqs
2006-08-23- improved nfsroo parsingmaximilian attems
- added rootdelay and rootfstype bootargs - document this changes - initrd-tools backward compatible mdadm assembe and then run mdrun - update-initramfs really checkout use_bootloader from /etc/kernel-img.conf - tighter klibc deps
2006-08-17Release 0.74:maximilian attems
- scripts/functions: fix debug boot param - update-initramfs: checkout /etc/kernel-img.conf if lilo and grub is installed - rename mdraid to mdrun, readd mdrun as it seems to work much better with sarge systems - add an help message for rescue shell - better package desc
2006-07-16big ubuntu merge:maximilian attems
- changelog - typos + whitespace + comments + quoting - vga16fb
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-04-180.60:maximilian attems
- bug script - cryptoroot support - change exported variables - nfsopts, rootflags support - warn lilo+grub install - doc fixes
2006-03-26Resynch with 0.40ubuntu28maximilian attems
add raid10 module move the loop waiting code to mountroot() leaves only ide-generic from scripts/local-top/udev_helper md pre-requesites the udev one
2006-03-14use quiet for fs module loadingmaximilian attems
2005-12-12debian's module-init-tools of testing doesn't have yet themaximilian attems
modprobe -Qb interface, keep the change for next time. :(
2005-12-12merge ubuntu modprobe silence stuffmaximilian attems
and cp all /etc/modprobe.d :)
2005-12-05resync with latest ubuntu, split udev done by hand.maximilian attems
2005-10-21added latest upstream fixes :-)maximilian attems
2005-08-25initramfs-tools (0.23) breezy; urgency=lowJeff Bailey
"This suspense is terrible. I hope it will last." - Oscar Wilde * scripts/local: Quote ${ROOT} so that an empty value causes us to drop to a shell. Thanks to Matt Zimmerman for this fix! - hook-functions (auto_add_modules): Add atiixp and opti621 to the IDE set. - hook-functions (dep_add_modules): Detect i2o and add i2o_block (auto_add_modules): Include i2o_block. - scripts/functions (i2o_boot_events): New function (load_modules): Call it. (Ubuntu# 13806) Thanks to Tollef Fog Heen for the i2o patch! - debian/control: Depend on udev. Thanks to Alexander Butenko for troubleshooting this with me. - init: Move the /dev directory to the root filesystem. Handle all the udev bind mounts as needed. Make sure input and output is associated with dev/console. - scripts/functions (parse_numeric): Exit if we're refering to a path. Otherwise override root setting to be /dev/root. - init: Call parse_numeric when setting the root variable. - scripts/local-top/lvm: When using a numeric root, call vgchange -ay Don't attempt to start LVM on regular partitions. (Ubuntu #13365, #13778, and some of #13399) - scripts/local-top/lvm: Cope with -'s in the Volume Group and logical volume names. (Ubuntu #13387) Thanks to Stephen Shirley for the patch! -- Jeff Bailey <jbailey@ubuntu.com> Thu, 25 Aug 2005 11:48:15 -0400 initramfs-tools (0.22) breezy; urgency=low * Fix argument handling in force_load hook-function * Add "sleep 3" to scripts/nfs as a nasty hack around bug #12942 -- Matt Zimmerman <mdz@ubuntu.com> Fri, 19 Aug 2005 23:50:16 -0700
2005-06-30* Use detailed logging now for debian/changelog. We have at leastJeff Bailey
three people hacking now, and details would probably be useful. * debian/TODO: Update * debian/dirs: Sort and add usr/share/initramfs-tools/hooks * debian/initramfs-tools.examples: Add docs/example_hook and docs/example_hook_cpiogz * debian/initramfs-tools.install: Pretty Print. * debian/rules: Ensure that mkinitramfs is executable * docs/example_script: New file * init: Add concept of 'quiet', be verbose if not specified * mkinitramfs: Do not load script functions until needed Clear up comments / documentation Use DESTDIR instead of TMPDIR Add ability to link in extra hunks into the cpio file Cosmetic cleanups * scripts/functions: Add lsb stype log_FOO_msg functions * scripts/local: Add logging * scripts/nfs: Add logging
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-17Integrate Matt Zimmerman's changes to initramfsJeff Bailey
2005-06-14export command line parameters to run scripts. honour commandline ↵Jeff Bailey
readonly/readwrite parameters for nfs. Release initramfs 0.8
2005-06-13Update with new dependancy based init system, call the right script ↵Jeff Bailey
directories, always use busybox now, sigh.
2005-06-09Add hookscriptsJeff Bailey
2005-06-08Initial checkinJeff Bailey