diff options
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 29 |
1 files changed, 9 insertions, 20 deletions
@@ -6,16 +6,11 @@ . /etc/rc.conf . /etc/rc.d/functions -if [[ -s /etc/locale.conf ]]; then - parse_envfile /etc/locale.conf "LANG" -elif [[ $LOCALE ]]; then - export LANG=$LOCALE -fi +# don't let all the systemd tools be too verbose +export SYSTEMD_LOG_LEVEL="notice" -echo " " -printhl "Parabola GNU/Linux-Libre\n" -printhl "${C_H2}https://parabolagnulinux.org" -printsep +# Prints distro name and URL +print_welcome # mount the API filesystems # /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm @@ -27,9 +22,6 @@ mkdir -p /dev/{pts,shm} mountpoint -q /dev/pts || mount -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec mountpoint -q /dev/shm || mount -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev -# log all console messages -bootlogd -p /run/bootlogd.pid - if [[ ! -e /run/initramfs/root-fsck ]]; then # remount root ro to allow for fsck later on, we remount now to # make sure nothing can open files rw on root which would block a remount @@ -37,6 +29,9 @@ if [[ ! -e /run/initramfs/root-fsck ]]; then status "Mounting root read-only" mount -o remount,ro / fi +# log all console messages +bootlogd -p /run/bootlogd.pid + run_hook sysinit_start HWCLOCK_PARAMS="--systz" @@ -78,20 +73,14 @@ status 'Configuring virtual consoles' /usr/lib/systemd/systemd-vconsole-setup [[ $USEDMRAID = [Yy][Ee][Ss] && -x $(type -P dmraid) ]] && status "Activating FakeRAID arrays" dmraid -i -ay -# Btrfs devices detection -[[ $USEBTRFS = [Yy][Ee][Ss] && -x $(type -P btrfs) ]] && - status "Activating Btrfs volumes" btrfs device scan - # Activate LVM2 groups, if any activate_vgs # Set up non-root encrypted partition mappings if [[ -f /etc/crypttab ]] && type -p cryptsetup >/dev/null; then - stat_busy "Unlocking encrypted volumes" - crypto_unlocked=0 - read_crypttab do_unlock && stat_done || stat_fail + read_crypttab do_unlock # Maybe someone has LVM on an encrypted block device - (( crypto_unlocked )) && activate_vgs + (( $? )) && activate_vgs fi # Check filesystems |