Baoquan He
679fa7ed3c
99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck
...
The fsck is ignored when replace emergency_shell with action_on_fail,
now add it.
Signed-off-by: Baoquan He <bhe@redhat.com>
2013-05-30 08:28:08 +02:00
Harald Hoyer
4f084f3ab5
fs-lib/module-setup.sh: add xfs_metadump
2013-05-29 17:51:57 +02:00
Harald Hoyer
af2716626a
kernel-modules/module-setup.sh: add nvme kernel module
...
apparently not caught by the block driver regexp
https://bugzilla.redhat.com/show_bug.cgi?id=910734
2013-05-29 14:48:13 +02:00
Harald Hoyer
6625c085ae
ifcfg/write-ifcfg.sh:
...
- fix ONBOOT for slaves
- set TYPE=Bond for bonding
https://bugzilla.redhat.com/show_bug.cgi?id=919001
2013-05-29 14:38:52 +02:00
Harald Hoyer
af2578562c
udev-rules/module-setup.sh: optionally install /etc/pcmcia/config.opts
...
https://bugzilla.redhat.com/show_bug.cgi?id=920076
2013-05-29 14:29:02 +02:00
Harald Hoyer
8099e7b1ba
crypt-loop/module-setup.sh: install loop kernel module
2013-05-29 13:31:54 +02:00
Harald Hoyer
0a3e348225
i18n/module-setup.sh: install default font latarcyrheb-sun16
2013-05-29 13:27:03 +02:00
Harald Hoyer
b78e6ac2c3
dracut-emergency.service: do not start for "action_on_fail=continue"
2013-05-29 11:33:25 +02:00
Dennis Schridde
cbfe65c2fe
[40network] Provide a hostname fallback function, in case there is no executable of this name
2013-05-29 11:32:57 +02:00
Harald Hoyer
284d62da81
ifcfg/write-ifcfg.sh: proper NAME the interfaces
...
https://bugzilla.redhat.com/show_bug.cgi?id=965842
2013-05-28 16:56:40 +02:00
Harald Hoyer
c6df70fb48
btrfs: include btrfs-zero-log in the initramfs
...
https://bugzilla.redhat.com/show_bug.cgi?id=963257
2013-05-28 16:34:56 +02:00
Harald Hoyer
1b8616adee
url-lib/url-lib.sh: turn off curl globbing
...
https://bugzilla.redhat.com/show_bug.cgi?id=907497
2013-05-28 16:16:26 +02:00
Harald Hoyer
639bd4873b
dracut.spec: put selinux for kdump crash file contexts
2013-05-28 15:40:45 +02:00
Kamil Rytarowski
e0904b27ff
Fix memory leak
2013-05-28 14:36:37 +02:00
Kamil Rytarowski
d9eff33ce2
Always check the return number of asprintf
...
asprintf prints to an allocated string. When successful, the
functions return the number of bytes printed. If memory allocation
wasn't possible, or some other error occurs, the function will return
-1.
Don't check strp as a result of asprintf, it's content may be undefined.
man 3 asprintf
2013-05-28 14:35:54 +02:00
Kamil Rytarowski
8974102f6b
Use consistiently termination code macros
...
Operate in install_all and install_one consequently on EXIT_SUCCESS
and EXIT_FAILURE termination code macros as they are meant to be
returned from these functions.
2013-05-28 14:34:44 +02:00
Kamil Rytarowski
599182b108
Introduce stricter type correctness
2013-05-28 14:34:29 +02:00
Kamil Rytarowski
6a736cc129
Fix parsing command line arguments
...
Adjust correctly the *optstring argument of getopt_long. Add support
for a missing option -v|--verbose and drop unknown options -D, -I and -L.
2013-05-28 14:33:02 +02:00
Baoquan He
15b93069bb
01fips/module-setup.sh: add libssl.so.10 to make kdump work with fips mode
...
FIPS can work well in 1st kernel, but failed in kdump kernel. the
libssl.so.10 and related hmac file are needed. Now add it and it
works.
Signed-off-by: Baoquan He <bhe@redhat.com>
2013-05-28 14:26:31 +02:00
Harald Hoyer
19b5c10963
dracut-functions.sh: clarify instmods() error message
2013-05-28 14:25:49 +02:00
Harald Hoyer
bcfbddefe1
don't add volatile swap partitions to host_devs
2013-05-28 13:36:37 +02:00
Harald Hoyer
780cb33741
systemd: set environment vars DRACUT_SYSTEMD, NEWROOT in service file
2013-05-28 12:50:57 +02:00
Adam Williamson
8d7c07f191
don't specify "p" as a separator for dmraid arrays (RHBZ #966162 )
...
As per RHBZ #966162 , parted stopped unconditionally using "p" as a
separator for dmraid device names in version 3.1, so other things need
to fall in line with that convention now.
2013-05-27 10:08:53 +02:00
Harald Hoyer
fefd3f66f9
dracut.sh: degrade message about missing tools for stripping
...
warning -> info
https://bugzilla.redhat.com/show_bug.cgi?id=958519
2013-05-06 14:20:16 +02:00
Colin Guthrie
d57b8833c4
usrmount: Fix miss-detection of btrfs subvolumes.
...
This causes the root FS options to be incorrectly applied to to /usr
In some cases this can cause boot failure e.g. due to and XFS /usr
not supporting the 'acl' option from the ext4 root FS.
https://bugs.mageia.org/show_bug.cgi?id=9884
2013-05-06 14:06:07 +02:00
Harald Hoyer
9584c6ae90
zfcp: match udev rule against KERNEL=="zfcp"
...
zfcp_cfdc will go away in the future
tt
2013-04-30 18:56:15 +02:00
Harald Hoyer
021b2fddff
test: use grep option "-F" and install /etc/os-release
2013-04-30 18:54:33 +02:00
WANG Chao
b6f2e05819
_emergency_shell: Show current working directory correctly in shell.
...
When dropped to emergency shell, for example, use rd.break=pre-pivot,
the PS1 won't correctly show current directory we're in:
pre-pivot:/# cd /sysroot/
pre-pivot:/#
(still shows "/")
Let's take a look at PS1 variable:
(I'm adding prefix/suffix 'x' to make it clear):
pre-pivot:/# echo x${PS1}x
xpre-pivot:/# x
(PS1 isn't dynamic)
Regarding the current dracut code, it should be:
pre-pivot:/# cd /sysroot/etc
pre-pivot:/sysroot/etc#
With this patch:
pre-pivot:/# echo x${PS1}x
xpre-pivot:${PWD}# x
(Now PS1 is dynamic, it will show the directory correctly)
I tested for both normal boot and kdump boot.
Signed-off-by: WANG Chao <chaowang@redhat.com>
2013-04-30 12:13:56 +02:00
Harald Hoyer
3ed08d1e4d
dracut-install: make use of _cleanup_* macros
2013-04-29 11:35:23 +02:00
Harald Hoyer
26a077fc7e
fips: do not fail immediatly after loading the crypto modules
...
Fail only if tcrypt insmod failed.
2013-04-29 11:34:26 +02:00
Harald Hoyer
8461734ee4
dracut.sh: do not preunlink for fips mode
...
just install prelink and the cache files
2013-04-25 21:16:03 +02:00
Harald Hoyer
6f4c2dada4
fixed fips mode
...
- preserve timestamps
- copy /lib*/hmaccalc files
- run sha512hmac after kernel module loading
- add more fips kernel modules
2013-04-25 19:44:01 +02:00
Harald Hoyer
ab42fe38fd
fixup 3be5d63c2f
...
either test or []
2013-04-19 15:08:16 +02:00
Harald Hoyer
3be5d63c2f
shutdown: redirect output to /dev/console only if it exists
2013-04-19 15:00:20 +02:00
Harald Hoyer
b4dc22cab7
dracut-install: error out, if ldd reports no execution permission
...
This turns off lazy resolving on noexec mounted tmp directories.
https://bugzilla.redhat.com/show_bug.cgi?id=953426
2013-04-18 12:54:55 +02:00
Harald Hoyer
2b125c69cc
base/dracut-lib.sh: do not setdebug, if not in initramfs
2013-04-18 12:54:30 +02:00
Harald Hoyer
9268366cad
Makefile: remove dracut-version.sh on clean
2013-04-16 13:41:19 +02:00
Harald Hoyer
d0eedc4a5f
.gitignore: ignore more files
2013-04-16 13:38:16 +02:00
Harald Hoyer
4460416abc
lsinitrd.sh: do not output filename for a single file
2013-04-16 13:36:04 +02:00
Harald Hoyer
884e1cda7c
lsinitrd: drop use of "file"
2013-04-16 13:04:21 +02:00
Harald Hoyer
46a885bf9f
dracut-bash-completion.sh: file filename completion
2013-04-16 11:32:32 +02:00
Harald Hoyer
7dbca9be86
lsinitrd: add bash completion
2013-04-16 11:32:31 +02:00
Harald Hoyer
7d9bb76ac7
lsinitrd: switch to getopt and add "-f" and "-k" parameter
2013-04-16 11:32:31 +02:00
Harald Hoyer
26ab7b07a6
Makefile: fixup tarball Makefile
2013-04-15 11:53:03 +02:00
Harald Hoyer
14499534ba
dmsquash-live: add support for "iso-scan/filename" kernel parameter
...
now you can write grub entries like
set isofile="/Fedora-live.iso"
loopback loop $isofile
linux loop)/isolinux/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=Fedora-...
initrd (loop)/isolinux/initrd0.img
2013-04-15 11:39:32 +02:00
Harald Hoyer
1540df0e79
url-lib/module-setup.sh: install ca-bundle.crt by libcurl.so
...
https://bugzilla.redhat.com/show_bug.cgi?id=950770
curl seems to look for /etc/pki/tls/certs/ca-bundle.crt
extract the correct path by disecting libcurl.so
2013-04-12 15:27:27 +02:00
Harald Hoyer
5d68c80b16
systemd: include the systemd-random-seed-load.service
...
The systemd cryptsetup-generator wants systemd-random-seed-load.service
in case /dev/urandom is the device.
2013-04-12 15:27:27 +02:00
Harald Hoyer
5f8cd1a4be
Makefile,git2spec.pl: use "git describe"
2013-04-12 15:27:27 +02:00
Harald Hoyer
14201d23e7
AUTHORS: update
2013-04-12 15:27:27 +02:00
Harald Hoyer
a229b17434
plymouth/plymouth-pretrigger.sh: fixup of ca2c6936
2013-04-12 15:25:44 +02:00