Age | Commit message (Collapse) | Author |
|
|
|
If /sbin/init is an absolute symlink (e.g. to /bin/systemd) the
readlink check doesn't work as $rootmnt is involved.
The validate_init() shell function takes care of this fact, as
well as when guessing the init binary points to a directory. For
example Ubuntu's upstart has its configuration inside /etc/init
whereas this is considered a valid run_init_process() binary by
the Linux kernel and `test -x' returns true when checking for
executables.
Therefore be more conservative with providing full backwards
compability as well as new added support for absolute symlinks at
the same time.
Closes: #590744
|
|
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>
|
|
|
|
Signed-off-by: Michael Prokop <mika@debian.org>
|
|
Older kernel versions (like the one shipped with Lenny) don't
support devtmpfs. Therefore display a warning message when
falling back to tmpfs. See #501359.
Thanks: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Michael Prokop <mika@debian.org>
|
|
as mentioned by Christoph Bussenius in #535008, it does appear that
setting BOOTIF from the value in /proc/cmdline is needed. at the time
i wrote the patch, i'm not sure it was, but it definitely is now.
with these patchese applied, it seems to work. at least for the moment.
Signed-off-by: maximilian attems <maks@debian.org>
|
|
got confused in course of #572858,
uppercase is for hardcoded device strings as here,
pick up RESUME and not resume from config file.
Closes: #576700
Signed-off-by: maximilian attems <maks@debian.org>
|
|
merge from 0.92bubuntu9
Signed-off-by: maximilian attems <maks@debian.org>
|
|
no point in spamming that for quiet boot.
Signed-off-by: maximilian attems <maks@debian.org>
|
|
Allows to redirect the console early.
[ merge from 0.92bubuntu71 ]
Signed-off-by: maximilian attems <maks@debian.org>
|
|
[ merge from 0.92bubuntu71 ]
Signed-off-by: maximilian attems <maks@debian.org>
|
|
init: thus drop depmod call.
Don't quote modules.*map, so we actually expand it.
(closes: #465760, #562561)
[ merge from 0.92bubuntu57 and 0.92bubuntu58 ]
Signed-off-by: maximilian attems <maks@debian.org>
|
|
falling back to a tmpfs if not supported by the kernel.
[ merge of 0.92bubuntu61 ]
Signed-off-by: maximilian attems <maks@debian.org>
|
|
as bonus also simplify the noresume case, just unset it in that case.
this should fix #572858 and friends,
looks broken to me in Lenny too.
Signed-off-by: maximilian attems <maks@debian.org>
|
|
enhances 673abb77821433a67add61ac79d739c6cee9eee0,
to allow scripts to make use of the variable.
Reported-by: Vagrant Cascadian <vagrant@freegeek.org>
Signed-off-by: maximilian attems <maks@debian.org>
|
|
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>
|
|
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>
|
|
|
|
As there is no /dev/disk/by-label//, we need to follow udev
on escape the '/' character with \x2f
don't rely on sed, as we might not have it in initramfs.
(closes: #489008)
Reported-by: Josh Triplett <josh@freedesktop.org>
Tested-by: Andres Salomon <dilinger@debian.org>
thanks for dilinger to pushing the first easy solution to a complete,
so we don't have to revisit the case.
|
|
we have boot scripts that search for root if none is passed.
usage by grml.org and debian-live.
This reverts commit 90ad6ff31f66112e863ea86c9960b9770a0a245e.
Reported-by: Michael Prokop <mika@grml.org>
|
|
The cmdline parameter `break=init' failed to work. It looks like the variable
`break' is unset before `maybe_break init' is evaluated.
(closes: #509637)
|
|
with bad luck that might still be on hda1,
but then you get a warning about missing root boot param.
|
|
no need to check if the string of the corresponding variable exists,
just unset all of them, but 2 that we need to pass on for calling init.
|
|
rather than /tmp/initramfs.debug, so that it can be retrieved after boot.
|
|
useful for debug cases
closes: #488963
|
|
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>
|
|
This reverts commit 74be87d35841eae3c3febf00b568df5232c85f06.
talked to hpa and he seemed quite unconvinced about that report.
the run-init code doesn't also seem to backup that claim.
so nuke it for now until better analysis shows up.
|
|
grave bug as makes a Debian slug unbootable.
Thanks Kevin Price <kp@kevin-price.de> for report and
Martin Michlmayr <tbm@cyrius.com> for debugging.
The cause was the reordering of the ROOT export *after*
it had been sourced in init. Fix it by allowing all
exported variables to be ovverriden aka hardcoded.
|
|
long outstanding bug.
[ note: seems fixed in fedora mkinitrd, but not in opensuse.
they simply call run-init like anyone else. -maks]
|
|
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.
|
|
if /dev/console doesn't yet exist it should be created
with proper permissions.
|
|
klibc mkdir has only the short option, use that.
|
|
be more consistent on exporting *all* relevant ROOT* variables,
thanks to Sten Spans <sten@blinkenlights.nl> for pointing that out.
|
|
root nfs needs to check that the boot is not set before setting it.
Thanks Thomas Lange <lange@informatik.uni-koeln.de> for report!
|
|
|
|
If you have quiet in your /proc/cmdline you can never
reach any debug bootoption anymore.
|
|
You’ll notice a strange error message due to an empty
$init if the rootfs can’t be found.
|
|
|
|
Fixes bootfailure on bogus init bootarg too.
Plus there may be a rootfs without init, but with sh.
|
|
i is a bad name for a conf, rename.
|
|
|
|
|
|
|
|
they cause funny sleep error messages:
aka you can't sleep "bar" time ;)
take into account that subsecond sleeps are ok.
thanks david for the idea, gone for the q&d regex check.
|
|
the cryptsetup scripts parse /proc/cmdline themselves
(even in the Etch version).
|
|
disallows modules loading inside of the initramfs.
|
|
restore_initramfs(): verbose output before action
|
|
* 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
|
|
- allow conservative settings for skipping updated initramfs.
- debug output to screen
- parse mbr for lilo
+ small fixes
|