diff -Naur dracut-038/dracut.conf.d/magellan.conf.example dracut-038-magellan/dracut.conf.d/magellan.conf.example --- dracut-038/dracut.conf.d/magellan.conf.example 1970-01-01 00:00:00.000000000 +0000 +++ dracut-038-magellan/dracut.conf.d/magellan.conf.example 2014-07-01 15:44:20.956000000 +0000 @@ -0,0 +1,15 @@ +# 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_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" diff -Naur dracut-038/Makefile dracut-038-magellan/Makefile --- dracut-038/Makefile 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/Makefile 2014-07-01 15:45:06.509000000 +0000 @@ -109,6 +109,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-functions.sh $(DESTDIR)$(pkglibdir)/dracut-functions.sh install -m 0755 dracut-version.sh $(DESTDIR)$(pkglibdir)/dracut-version.sh ln -fs dracut-functions.sh $(DESTDIR)$(pkglibdir)/dracut-functions diff -Naur dracut-038/modules.d/10i18n/console_init.sh dracut-038-magellan/modules.d/10i18n/console_init.sh --- dracut-038/modules.d/10i18n/console_init.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/10i18n/console_init.sh 2014-07-01 15:45:44.326000000 +0000 @@ -11,7 +11,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-038/modules.d/45ifcfg/module-setup.sh dracut-038-magellan/modules.d/45ifcfg/module-setup.sh --- dracut-038/modules.d/45ifcfg/module-setup.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/45ifcfg/module-setup.sh 2014-07-01 15:46:11.750000000 +0000 @@ -4,7 +4,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-038/modules.d/45ifcfg/write-ifcfg.sh dracut-038-magellan/modules.d/45ifcfg/write-ifcfg.sh --- dracut-038/modules.d/45ifcfg/write-ifcfg.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/45ifcfg/write-ifcfg.sh 2014-08-10 16:49:14.764000000 +0000 @@ -271,13 +271,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-038/modules.d/80cms/cms-write-ifcfg.sh dracut-038-magellan/modules.d/80cms/cms-write-ifcfg.sh --- dracut-038/modules.d/80cms/cms-write-ifcfg.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/80cms/cms-write-ifcfg.sh 2014-08-10 16:50:16.562000000 +0000 @@ -4,7 +4,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() { @@ -24,19 +24,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 @@ -98,7 +98,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-038/modules.d/95rootfs-block/mount-root.sh dracut-038-magellan/modules.d/95rootfs-block/mount-root.sh --- dracut-038/modules.d/95rootfs-block/mount-root.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/95rootfs-block/mount-root.sh 2014-08-10 16:51:45.765000000 +0000 @@ -35,8 +35,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 @@ -59,8 +59,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-038/modules.d/97masterkey/masterkey.sh dracut-038-magellan/modules.d/97masterkey/masterkey.sh --- dracut-038/modules.d/97masterkey/masterkey.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/97masterkey/masterkey.sh 2014-08-10 16:52:13.725000000 +0000 @@ -8,7 +8,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-038/modules.d/97masterkey/README dracut-038-magellan/modules.d/97masterkey/README --- dracut-038/modules.d/97masterkey/README 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/97masterkey/README 2014-08-10 16:52:01.643000000 +0000 @@ -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-038/modules.d/98ecryptfs/ecryptfs-mount.sh dracut-038-magellan/modules.d/98ecryptfs/ecryptfs-mount.sh --- dracut-038/modules.d/98ecryptfs/ecryptfs-mount.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/98ecryptfs/ecryptfs-mount.sh 2014-08-10 16:48:44.699000000 +0000 @@ -8,7 +8,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-038/modules.d/98ecryptfs/README dracut-038-magellan/modules.d/98ecryptfs/README --- dracut-038/modules.d/98ecryptfs/README 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/98ecryptfs/README 2014-08-10 16:48:31.399000000 +0000 @@ -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-038/modules.d/98integrity/evm-enable.sh dracut-038-magellan/modules.d/98integrity/evm-enable.sh --- dracut-038/modules.d/98integrity/evm-enable.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/98integrity/evm-enable.sh 2014-08-10 16:50:32.499000000 +0000 @@ -9,7 +9,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-038/modules.d/98integrity/ima-policy-load.sh dracut-038-magellan/modules.d/98integrity/ima-policy-load.sh --- dracut-038/modules.d/98integrity/ima-policy-load.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/98integrity/ima-policy-load.sh 2014-08-10 16:51:13.487000000 +0000 @@ -9,8 +9,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-038/modules.d/98integrity/README dracut-038-magellan/modules.d/98integrity/README --- dracut-038/modules.d/98integrity/README 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/98integrity/README 2014-08-10 16:50:54.900000000 +0000 @@ -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,8 +33,8 @@ # 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" ------------------------------------------------------------------------- diff -Naur dracut-038/modules.d/98usrmount/mount-usr.sh dracut-038-magellan/modules.d/98usrmount/mount-usr.sh --- dracut-038/modules.d/98usrmount/mount-usr.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/modules.d/98usrmount/mount-usr.sh 2014-08-10 16:49:37.905000000 +0000 @@ -34,7 +34,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-038/test/TEST-04-FULL-SYSTEMD/test.sh dracut-038-magellan/test/TEST-04-FULL-SYSTEMD/test.sh --- dracut-038/test/TEST-04-FULL-SYSTEMD/test.sh 2014-06-30 10:03:12.000000000 +0000 +++ dracut-038-magellan/test/TEST-04-FULL-SYSTEMD/test.sh 2014-08-10 16:47:42.233000000 +0000 @@ -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 \