diff -Naur dracut-044/dracut.conf.d/magellan.conf.example dracut-044-magellan/dracut.conf.d/magellan.conf.example --- dracut-044/dracut.conf.d/magellan.conf.example 1970-01-01 01:00:00.000000000 +0100 +++ dracut-044-magellan/dracut.conf.d/magellan.conf.example 2015-11-30 10:37:05.716075316 +0100 @@ -0,0 +1,18 @@ +# dracut config file customized for Magellan-Linux + +# i18n +i18n_vars="/etc/conf.d/keymap:KEYMAP /etc/conf.d/consolefont:CONSOLEFONT" +i18n_default_font="latarcyrheb-sun16" +i18n_install_all="yes" +stdloglvl=3 +sysloglvl=5 +install_optional_items+=" nano /etc/nanorc lsmod ps grep cat rm " +prefix="/" +systemdutildir=/usr/lib/systemd +systemdsystemunitdir=/usr/lib/systemd/system +systemdsystemconfdir=/etc/systemd/system +udevdir=/usr/lib/udev +hostonly="yes" +hostonly_cmdline="no" +early_microcode="yes" +reproducible="yes" diff -Naur dracut-044/Makefile dracut-044-magellan/Makefile --- dracut-044/Makefile 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/Makefile 2015-11-30 10:39:08.514515379 +0100 @@ -122,6 +122,9 @@ install -m 0644 dracut.conf $(DESTDIR)$(sysconfdir)/dracut.conf mkdir -p $(DESTDIR)$(sysconfdir)/dracut.conf.d mkdir -p $(DESTDIR)$(pkglibdir)/dracut.conf.d + install -m 0644 dracut.conf.d/magellan.conf.example $(DESTDIR)$(sysconfdir)/dracut.conf.d/01-magellan.conf + mkdir -p $(DESTDIR)$(sysconfdir)/logrotate.d + install -m 0644 dracut.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/dracut install -m 0755 dracut-init.sh $(DESTDIR)$(pkglibdir)/dracut-init.sh install -m 0755 dracut-functions.sh $(DESTDIR)$(pkglibdir)/dracut-functions.sh install -m 0755 dracut-version.sh $(DESTDIR)$(pkglibdir)/dracut-version.sh diff -Naur dracut-044/modules.d/10i18n/console_init.sh dracut-044-magellan/modules.d/10i18n/console_init.sh --- dracut-044/modules.d/10i18n/console_init.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/10i18n/console_init.sh 2015-11-30 10:39:36.544159181 +0100 @@ -9,7 +9,7 @@ [ -e /etc/vconsole.conf ] && . /etc/vconsole.conf DEFAULT_FONT=LatArCyrHeb-16 -DEFAULT_KEYMAP=/etc/sysconfig/console/default.kmap +DEFAULT_KEYMAP=/etc/conf.d/console/default.kmap set_keyboard() { local param diff -Naur dracut-044/modules.d/45ifcfg/module-setup.sh dracut-044-magellan/modules.d/45ifcfg/module-setup.sh --- dracut-044/modules.d/45ifcfg/module-setup.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/45ifcfg/module-setup.sh 2015-11-30 10:40:03.645814735 +0100 @@ -2,7 +2,7 @@ # called by dracut check() { - [[ -d /etc/sysconfig/network-scripts ]] && return 0 + [[ -d /etc/conf.d/network-scripts ]] && return 0 return 255 } diff -Naur dracut-044/modules.d/45ifcfg/write-ifcfg.sh dracut-044-magellan/modules.d/45ifcfg/write-ifcfg.sh --- dracut-044/modules.d/45ifcfg/write-ifcfg.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/45ifcfg/write-ifcfg.sh 2015-11-30 10:40:36.322399384 +0100 @@ -275,13 +275,13 @@ done # Pass network opts -mkdir -m 0755 -p /run/initramfs/state/etc/sysconfig/network-scripts +mkdir -m 0755 -p /run/initramfs/state/etc/conf.d/network-scripts mkdir -m 0755 -p /run/initramfs/state/var/lib/dhclient -echo "files /etc/sysconfig/network-scripts" >> /run/initramfs/rwtab +echo "files /etc/conf.d/network-scripts" >> /run/initramfs/rwtab echo "files /var/lib/dhclient" >> /run/initramfs/rwtab { cp /tmp/net.* /run/initramfs/ cp /tmp/net.$netif.resolv.conf /run/initramfs/state/etc/resolv.conf - copytree /tmp/ifcfg /run/initramfs/state/etc/sysconfig/network-scripts + copytree /tmp/ifcfg /run/initramfs/state/etc/conf.d/network-scripts cp /tmp/ifcfg-leases/* /run/initramfs/state/var/lib/dhclient } > /dev/null 2>&1 diff -Naur dracut-044/modules.d/80cms/cms-write-ifcfg.sh dracut-044-magellan/modules.d/80cms/cms-write-ifcfg.sh --- dracut-044/modules.d/80cms/cms-write-ifcfg.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/80cms/cms-write-ifcfg.sh 2015-11-30 10:41:26.270764395 +0100 @@ -2,7 +2,7 @@ type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh -mkdir -m 0755 -p /run/initramfs/state/etc/sysconfig/network-scripts +mkdir -m 0755 -p /run/initramfs/state/etc/conf.d/network-scripts function cms_write_config() { @@ -23,19 +23,19 @@ uuid=$(cat /proc/sys/kernel/random/uuid) - IFCFGFILE=/run/initramfs/state/etc/sysconfig/network-scripts/ifcfg-$DEVICE + IFCFGFILE=/run/initramfs/state/etc/conf.d/network-scripts/ifcfg-$DEVICE strglobin "$IPADDR" '*:*:*' && ipv6=1 # to please NetworkManager on startup in loader before loader reconfigures net - cat > /etc/sysconfig/network << EOF + cat > /etc/conf.d/network << EOF HOSTNAME=$HOSTNAME EOF echo "$HOSTNAME" > /etc/hostname if [ "$ipv6" ]; then - echo "NETWORKING_IPV6=yes" >> /etc/sysconfig/network + echo "NETWORKING_IPV6=yes" >> /etc/conf.d/network else - echo "NETWORKING=yes" >> /etc/sysconfig/network + echo "NETWORKING=yes" >> /etc/conf.d/network fi cat > $IFCFGFILE << EOF @@ -97,7 +97,7 @@ unset optstr unset DNS1 unset DNS2 - echo "files /etc/sysconfig/network-scripts" >> /run/initramfs/rwtab + echo "files /etc/conf.d/network-scripts" >> /run/initramfs/rwtab echo "files /var/lib/dhclient" >> /run/initramfs/rwtab } diff -Naur dracut-044/modules.d/95rootfs-block/mount-root.sh dracut-044-magellan/modules.d/95rootfs-block/mount-root.sh --- dracut-044/modules.d/95rootfs-block/mount-root.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/95rootfs-block/mount-root.sh 2015-11-30 10:42:12.442177323 +0100 @@ -33,8 +33,8 @@ READONLY= fsckoptions= - if [ -f "$NEWROOT"/etc/sysconfig/readonly-root ]; then - . "$NEWROOT"/etc/sysconfig/readonly-root + if [ -f "$NEWROOT"/etc/conf.d/readonly-root ]; then + . "$NEWROOT"/etc/conf.d/readonly-root fi if getargbool 0 "readonlyroot=" -y readonlyroot; then @@ -57,8 +57,8 @@ if [ -f "$NEWROOT"/forcefsck ] || getargbool 0 forcefsck ; then fsckoptions="-f $fsckoptions" elif [ -f "$NEWROOT"/.autofsck ]; then - [ -f "$NEWROOT"/etc/sysconfig/autofsck ] && \ - . "$NEWROOT"/etc/sysconfig/autofsck + [ -f "$NEWROOT"/etc/conf.d/autofsck ] && \ + . "$NEWROOT"/etc/conf.d/autofsck if [ "$AUTOFSCK_DEF_CHECK" = "yes" ]; then AUTOFSCK_OPT="$AUTOFSCK_OPT -f" fi diff -Naur dracut-044/modules.d/97masterkey/masterkey.sh dracut-044-magellan/modules.d/97masterkey/masterkey.sh --- dracut-044/modules.d/97masterkey/masterkey.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/97masterkey/masterkey.sh 2015-11-30 10:42:31.696932472 +0100 @@ -6,7 +6,7 @@ # TORSEC group -- http://security.polito.it # Roberto Sassu -MASTERKEYSCONFIG="${NEWROOT}/etc/sysconfig/masterkey" +MASTERKEYSCONFIG="${NEWROOT}/etc/conf.d/masterkey" MULTIKERNELMODE="NO" PCRLOCKNUM=11 diff -Naur dracut-044/modules.d/97masterkey/README dracut-044-magellan/modules.d/97masterkey/README --- dracut-044/modules.d/97masterkey/README 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/97masterkey/README 2015-11-30 10:42:48.727695989 +0100 @@ -39,7 +39,7 @@ MASTERKEY="/etc/keys/kmk-${MASTERKEYTYPE}.blob" -------------------------------------------------------------------------- -2) create the configuration file '/etc/sysconfig/masterkey' to override the +2) create the configuration file '/etc/conf.d/masterkey' to override the value of one or all variables; 3) specify these parameters in the kernel command line: diff -Naur dracut-044/modules.d/98ecryptfs/ecryptfs-mount.sh dracut-044-magellan/modules.d/98ecryptfs/ecryptfs-mount.sh --- dracut-044/modules.d/98ecryptfs/ecryptfs-mount.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/98ecryptfs/ecryptfs-mount.sh 2015-11-30 10:43:11.637370224 +0100 @@ -6,7 +6,7 @@ # TORSEC group -- http://security.polito.it # Roberto Sassu -ECRYPTFSCONFIG="${NEWROOT}/etc/sysconfig/ecryptfs" +ECRYPTFSCONFIG="${NEWROOT}/etc/conf.d/ecryptfs" ECRYPTFSKEYTYPE="encrypted" ECRYPTFSKEYDESC="1000100010001000" ECRYPTFSKEYID="" diff -Naur dracut-044/modules.d/98ecryptfs/README dracut-044-magellan/modules.d/98ecryptfs/README --- dracut-044/modules.d/98ecryptfs/README 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/98ecryptfs/README 2015-11-30 10:43:38.993982845 +0100 @@ -23,13 +23,13 @@ ECRYPTFSKEY="/etc/keys/ecryptfs-trusted.blob" -------------------------------------------------------------------------- -2) create the configuration file '/etc/sysconfig/ecryptfs' and set the ECRYPTFSKEY +2) create the configuration file '/etc/conf.d/ecryptfs' and set the ECRYPTFSKEY variable; 3) specify the eCryptfs key path name in the 'ecryptfskey=' parameter of the kernel command line. -# The configuration file '/etc/sysconfig/ecryptfs' is also used to specify +# The configuration file '/etc/conf.d/ecryptfs' is also used to specify # more options for mounting the eCryptfs filesystem: ECRYPTFSSRCDIR: existent directory in the lower root filesystem; @@ -39,7 +39,7 @@ option is automatically added by the dracut script). # Example of the configuration file: ------------ '/etc/sysconfig/ecryptfs' (with default values) ----------- +----------- '/etc/conf.d/ecryptfs' (with default values) ----------- ECRYPTFS_KEY="/etc/keys/ecryptfs-trusted.blob" ECRYPTFSSRCDIR="/secret" ECRYPTFSDSTDIR="${ECRYPTFSSRCDIR}" diff -Naur dracut-044/modules.d/98integrity/evm-enable.sh dracut-044-magellan/modules.d/98integrity/evm-enable.sh --- dracut-044/modules.d/98integrity/evm-enable.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/98integrity/evm-enable.sh 2015-11-30 10:44:01.832660738 +0100 @@ -7,7 +7,7 @@ # Roberto Sassu EVMSECFILE="${SECURITYFSDIR}/evm" -EVMCONFIG="${NEWROOT}/etc/sysconfig/evm" +EVMCONFIG="${NEWROOT}/etc/conf.d/evm" EVMKEYDESC="evm-key" EVMKEYTYPE="encrypted" EVMKEYID="" diff -Naur dracut-044/modules.d/98integrity/ima-keys-load.sh dracut-044-magellan/modules.d/98integrity/ima-keys-load.sh --- dracut-044/modules.d/98integrity/ima-keys-load.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/98integrity/ima-keys-load.sh 2015-11-30 10:47:17.495942364 +0100 @@ -2,7 +2,7 @@ SECURITYFSDIR="/sys/kernel/security" IMASECDIR="${SECURITYFSDIR}/ima" -IMACONFIG="${NEWROOT}/etc/sysconfig/ima" +IMACONFIG="${NEWROOT}/etc/conf.d/ima" load_x509_keys() { diff -Naur dracut-044/modules.d/98integrity/ima-policy-load.sh dracut-044-magellan/modules.d/98integrity/ima-policy-load.sh --- dracut-044/modules.d/98integrity/ima-policy-load.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/98integrity/ima-policy-load.sh 2015-11-30 10:44:23.439357030 +0100 @@ -7,8 +7,8 @@ # Roberto Sassu IMASECDIR="${SECURITYFSDIR}/ima" -IMACONFIG="${NEWROOT}/etc/sysconfig/ima" -IMAPOLICY="/etc/sysconfig/ima-policy" +IMACONFIG="${NEWROOT}/etc/conf.d/ima" +IMAPOLICY="/etc/conf.d/ima-policy" load_ima_policy() { diff -Naur dracut-044/modules.d/98integrity/README dracut-044-magellan/modules.d/98integrity/README --- dracut-044/modules.d/98integrity/README 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/98integrity/README 2015-11-30 10:44:54.195926366 +0100 @@ -20,7 +20,7 @@ EVMKEY="/etc/keys/evm-trusted.blob" -------------------------------------------------------------------------- -2) create the configuration file '/etc/sysconfig/evm' and set the EVMKEY variable; +2) create the configuration file '/etc/conf.d/evm' and set the EVMKEY variable; 3) specify the EVM key path name in the 'evmkey=' parameter of the kernel command line. @@ -33,10 +33,10 @@ # Save the policy in a file. -# Create the configuration file '/etc/sysconfig/ima' to override the path name of +# Create the configuration file '/etc/conf.d/ima' to override the path name of # the IMA custom policy. -------------- '/etc/sysconfig/ima' (with the default value) ------------- -IMAPOLICY="/etc/sysconfig/ima-policy" +------------- '/etc/conf.d/ima' (with the default value) ------------- +IMAPOLICY="/etc/conf.d/ima-policy" ------------------------------------------------------------------------- @@ -64,5 +64,5 @@ # 98integrity/ima-keys-load.sh script loads the signed certificates stored # in the $IMAKEYSDIR onto the trusted IMA keyring. The default $IMAKEYSDIR -# directory is /etc/keys/ima, but can be specified in the /etc/sysconfig/ima +# directory is /etc/keys/ima, but can be specified in the /etc/conf.d/ima # policy. diff -Naur dracut-044/modules.d/98usrmount/mount-usr.sh dracut-044-magellan/modules.d/98usrmount/mount-usr.sh --- dracut-044/modules.d/98usrmount/mount-usr.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/modules.d/98usrmount/mount-usr.sh 2015-11-30 10:45:20.345561657 +0100 @@ -32,7 +32,7 @@ if [ -f "$NEWROOT"/forcefsck ] || getargbool 0 forcefsck ; then _fsckoptions="-f $_fsckoptions" elif [ -f "$NEWROOT"/.autofsck ]; then - [ -f "$NEWROOT"/etc/sysconfig/autofsck ] && . "$NEWROOT"/etc/sysconfig/autofsck + [ -f "$NEWROOT"/etc/conf.d/autofsck ] && . "$NEWROOT"/etc/conf.d/autofsck if [ "$AUTOFSCK_DEF_CHECK" = "yes" ]; then AUTOFSCK_OPT="$AUTOFSCK_OPT -f" fi diff -Naur dracut-044/test/TEST-04-FULL-SYSTEMD/test.sh dracut-044-magellan/test/TEST-04-FULL-SYSTEMD/test.sh --- dracut-044/test/TEST-04-FULL-SYSTEMD/test.sh 2015-11-25 14:22:28.000000000 +0100 +++ dracut-044-magellan/test/TEST-04-FULL-SYSTEMD/test.sh 2015-11-30 10:45:59.776014078 +0100 @@ -86,7 +86,7 @@ inst /lib/systemd/system/systemd-remount-fs.service inst /lib/systemd/systemd-remount-fs inst /lib/systemd/system/systemd-journal-flush.service - inst /etc/sysconfig/init + inst /etc/conf.d/init inst /lib/systemd/system/slices.target inst /lib/systemd/system/system.slice inst_multiple -o /lib/systemd/system/dracut* @@ -98,7 +98,7 @@ inst_multiple -o \ /etc/machine-id \ /etc/adjtime \ - /etc/sysconfig/init \ + /etc/conf.d/init \ /etc/passwd \ /etc/shadow \ /etc/group \