Go to file
Renaud Métrich c1c78f8a91 Harden dracut against BASH_ENV environment variable
When dracut silently produces a broken initramfs, then the system will
likely not boot and this can be very problematic. Typical use case is
after the kernel has been updated.

It appears that dracut is not protected against the BASH_ENV variable,
causing various scripts called by dracut to possibly fail or provide
wrong output (e.g. "ldd" is one of these).
Having a broken output for "ldd" makes the generated initramfs be not
usable, typically because vital binaries will be missing (e.g.
"awk", "udevadm", ...).

Note: because the shebang line cannot contain more than one argument,
the '--norc' option had to be removed. IMHO, it was useless anyway.

Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
2018-06-08 10:48:45 +02:00
dracut.conf.d add --no-reproducible to turn off reproducible mode 2015-11-13 11:53:36 +01:00
install dracut-install.c: untabify 2018-05-07 15:23:04 +02:00
modules.d fips: add sha3_generic and sm3_generic modules 2018-06-07 17:18:29 +02:00
skipcpio skipcpio/skipcpio.c: linux kernel only accepts "070701" signature 2015-07-07 13:44:13 +02:00
test test/ci-matrix.txt: add file specifying which tests to run 2018-01-12 13:04:34 +01:00
.dir-locals.el .dir-locals.el: changed to sane style 2017-01-16 14:27:39 +01:00
.gitignore Ignore more generated files 2017-01-25 13:27:05 +01:00
.kateconfig add kate and emacs per directory config files 2014-08-29 13:38:47 +02:00
.kateproject kate config 2016-04-15 10:27:48 +02:00
.mailmap version 047 2018-02-19 10:00:33 +01:00
50-dracut.install 5?-dracut*.install: Allow scripts to install the initramfs in /boot dir 2018-03-01 14:50:30 +01:00
51-dracut-rescue.install 51-dracut-rescue.install: fix initramfs not generated in /boot case 2018-03-12 09:05:40 +01:00
AUTHORS version 047 2018-02-19 10:00:33 +01:00
COPYING COPYING: updated to recent version of http://www.gnu.org/licenses/gpl-2.0.txt 2012-08-01 15:53:25 +02:00
HACKING removed trailing whitespaces 2011-05-10 11:56:09 +02:00
Makefile fix build with KMOD 2017-04-24 21:37:56 +02:00
NEWS version 047 2018-02-19 10:00:33 +01:00
PKGBUILD PKGFILE: prevent out of tree builds 2015-11-08 12:57:33 +01:00
README README: update 2016-11-03 14:54:45 +01:00
README.generic removed trailing whitespaces 2011-05-10 11:56:09 +02:00
README.kernel Version 006 2010-06-17 10:58:27 +02:00
README.md README.md: add test 31 2018-01-12 13:34:57 +01:00
README.modules consistently lowercase "dracut" 2012-10-10 14:15:11 +02:00
README.testsuite Drop dependency on bridge-utils 2017-02-14 14:10:24 +01:00
TODO TODO: remove some items 2016-11-03 15:05:36 +01:00
configure configure, kmod: bump kmod version to >= 23 2018-01-16 23:10:21 +09:00
dracut-bash-completion.sh fix typo 2017-09-05 01:26:31 +02:00
dracut-catimages.8.asc replace xml documentation with asciidoc 2012-03-14 15:48:33 +01:00
dracut-catimages.sh remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
dracut-functions.sh dracut-function.sh:check_block_and_slaves() check for block devices 2018-02-19 09:05:01 +01:00
dracut-init.sh all: fix issues found by shellcheck 2018-03-02 13:41:43 +01:00
dracut-initramfs-restore.sh add support for Zstandard 2017-09-05 01:23:38 +02:00
dracut-logger.sh dracut.sh: only create one TMPDIR 2015-11-25 14:21:33 +01:00
dracut.8.asc add support for Zstandard 2017-09-05 01:23:38 +02:00
dracut.asc Correct path for UEFI stub 2017-03-20 11:43:04 +01:00
dracut.bootup.7.asc documentation: line wrap 2014-01-13 09:51:04 +01:00
dracut.cmdline.7.asc 40network: introduce ip=either6 option 2018-05-29 10:07:19 +02:00
dracut.conf dracut.conf: remove example parameters 2015-07-09 15:36:25 +02:00
dracut.conf.5.asc Enable 'early_microcode' by default 2018-01-18 05:30:28 -05:00
dracut.css Doc: cleanup, extend and split and reuse 2013-10-08 15:13:12 +02:00
dracut.logrotate dracut.logrotate: remove "yearly" 2011-07-20 17:21:02 +02:00
dracut.modules.7.asc Update dracut.modules.7.asc 2018-04-30 21:48:34 +02:00
dracut.png dracut.png: Optimize with zopflipng -m 2016-07-07 13:54:47 +03:00
dracut.sh Harden dracut against BASH_ENV environment variable 2018-06-08 10:48:45 +02:00
dracut.spec dracut.spec: do not recommend grubby 2018-05-07 15:27:22 +02:00
dracut.svg added dracut logo 2010-12-02 17:13:04 +01:00
dracut.usage.asc man page: changed grub.conf to grub2.cfg 2015-11-11 15:47:46 +01:00
git2spec.pl git2spec.pl: handle empty merge commits 2017-10-09 17:40:04 +02:00
lsinitrd-bash-completion.sh remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
lsinitrd.1.asc lsinitrd: add "--unpack" to lsinitrd 2016-03-17 14:45:24 +01:00
lsinitrd.sh lsinitrd.sh: fixed zstd file signature 2018-03-15 09:56:56 +01:00
mkinitrd-dracut.sh mkinitrd-dracut.sh: removed trailing space in comment 2013-10-07 17:25:58 +02:00
mkinitrd-suse.8.asc man: make the -k option clear using mkinitrd 2016-12-02 14:32:09 +08:00
mkinitrd-suse.sh mkinitrd-suse.sh: Implement functionality of -A option 2017-12-19 13:23:08 +01:00
mkinitrd.8.asc documentation: line wrap 2014-01-13 09:51:04 +01:00
profile.py profile.py: do not count negative timestamp differences 2012-06-29 12:41:25 +02:00

README.md

dracut - master branch

dracut is an initramfs infrastructure.

CentOS CI

Build Status

  • Test 01: Test 01
  • Test 02: Test 02
  • Test 03: Test 03
  • Test 04: Test 04
  • Test 10: Test 10
  • Test 11: Test 11
  • Test 12: Test 12
  • Test 13: Test 13
  • Test 14: Test 14
  • Test 15: Test 15
  • Test 16: Test 16
  • Test 17: Test 17
  • Test 20: Test 20
  • Test 30: Test 30
  • Test 31: Test 31
  • Test 40: Test 40
  • Test 50: Test 50
  • Test 70: Test 70