| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I've been doing a lot of work on mkinitrd's dmraid support lately some of the
lessons learned there also apply to the activation of (not used for /) dmraid
arrays in rc.sysinit, this will esp. help the livecd proerly activating and
using dmraid sets.
The patch fixes the following issues:
1) rc.sysinit (and mkinitrd used to) calls dm_resolve_name() on the output of
dmraid, this is not necessary as dm_resolve_name is only needed when the name
is /dev/dm-#, it is actually harmful as dm_resolve_name sometimes fails when
used like this, causing us to fail to activate dmraid sets
2) rc.sysinit does not remove the partitions from the raw disks used in a
raidset the initrd used to use special nash functionality to tell the kernels
to forget about the partitions of the raw disks it had scanned at boot. The
issue here is, say we have a mirror of sda and sdb, and that mirror has 2
partitions. Then the kernel when scanning the raw disks will find
sda1,sda2,sdb1,sdb2. But we do not want anything using those, they should use
the devicemapper versions as those are mirrored! I've even seen mounting by
LABEL / UUID do the wrong thing by using the raw partitions instead of the
raidset partitions.
I've recently done a patch to dmraid adding a --rm_partitions cmdline option
which makes dmraid do the ioctl which makes the kernel forget about the
partitions of the rawdisk (which in turn makes udev remove the device nodes).
This way we no longer need the nash magic.
Part of my rc.sysinit patch is adding --rm_partitions to the dmraid invocation
3) rc.sysinit uses dmraid -p, which tells dmraid to not setup device maps for
the partitions of the raidset and then kalls kpartx to setup the device maps
for the partitions. This can be simplified by removing the -p argument to
dmraid
4) with all these changes in place there is no longer a reason to loop, a
single dmraid invocation is enough.
p.s.
AFAIK with this patch the last user of dm_resolve_name is gone, so that
function can be removed. Better check twice though.
|
|
|
|
|
|
|
| |
We were only reading the first line of pid files. Given that even
those first lines could have multiple pids, this *shouldn't* break
anything, but there may be some scripts with multi-line pid files
that aren't expecting this.
|
|
|
|
| |
Also, fix permissions on rc.d/init.d/functions.
|
|
|
|
| |
This matches the behavior of killproc.
|
|
|
|
| |
This fixes the fact that the semantics of --details changed.
|
| |
|
|
|
|
| |
Also, remove some old rhgb code.
|
|
|
|
| |
Don't try to start rhgb.
|
|
|
|
| |
This reverts commit c722b0ee95746aa9289efd40bbdd23a87d1e5dee.
|
|
|
|
| |
parameters generated by an older dmraid's "dmraid -ay --test".
|
| |
|
|
|
|
|
|
|
|
| |
Notable:
- separate [ "$variable" ] tests from [ -f ... ]
- don't grep init scripts
- cache the information from /sbin/consoletype
- simplify 'confirm' handling
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
implementation (which does not normalize for full paths)
|
| |
|
|
|
|
| |
which causes certain monitor/video card combos to flicker heavily (#237839)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
- slightly more readable formatting
- make "line" and "newline" the same variable
- kill 2 exec() calls, add 1.
- shell quoting rill ROT YOUR BRANE.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
<tonynelson@georgeanelson.com>)
|
|
|
|
| |
<saugart@mazunetworks.com>)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- src/fstab-decode.c, src/fstab-decode.8: New files.
- src/Makefile: Build and install fstab-decode.
- initscripts.spec: Add fstab-decode to %files
- rc.d/init.d/functions (fstab_decode_str): New function.
(__umount_loop, __umount_loopback_loop): Factor out from copy&pasted copies.
(action): Fix command quoting.
- rc.d/rc.sysinit: Correctly quote and decode mount points.
- rc.d/init.d/halt: Use __umount_* and fstab-decode.
(action): Rename from runcmd. Fix command quoting.
- rc.d/init.d/netfs: Use __umount_*.
|
|
|
|
| |
quotacheck after fsck has repaired something (#168118).
|
| |
|
| |
|
|
|
|
|
|
| |
exit status in these cases and use that in the future...
- add path to one dmraid call
- bump version, add changelog
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
from dmraid entirely.
|
| |
|
| |
|
| |
|
|
|
|
| |
activation
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(#63440)
- Update to implement current LSB specification for init script functions,
notably including -p pidfile (#99325, #134363) (based in part on patch
by Tobias Burnus)
- Misc. cleanups:
- Fix failures when run with (set -u)
- Mark more variables as local
|
|
|
|
| |
<ville.skytta@iki.fi>)
|