From 2a575328ac1432c21e0b983d2432f1f64dff0f96 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 28 Mar 2017 16:02:26 -0400 Subject: change some log locations --- initramfs-tools/scripts/samizdat | 5 +++-- src/initrd/btrfs-create.sh | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat index 4522a51..515b724 100644 --- a/initramfs-tools/scripts/samizdat +++ b/initramfs-tools/scripts/samizdat @@ -72,9 +72,10 @@ samizdat_install_udev_rules() samizdat_restart_udev() { - mkdir -p /var/log + local LOG_DIR=/run/initramfs/samizdat/log + mkdir -p "$LOG_DIR" killall systemd-udevd 2>/dev/null - /lib/systemd/systemd-udevd --resolve-names=never --debug >/var/log/udevd-systemd.log 2>&1 & + /lib/systemd/systemd-udevd --resolve-names=never --debug >$LOG_DIR/udevd-systemd.log 2>&1 & udevadm hwdb --update # rule is not executed by 'udevadm trigger' otherwise. not sure why } diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh index 917f957..a1a53ed 100644 --- a/src/initrd/btrfs-create.sh +++ b/src/initrd/btrfs-create.sh @@ -327,7 +327,8 @@ init_gpg() bootdone samizdat-gpg fi - if samizdat-password-agent >/var/log/samizdat-password-agent.log 2>&1; then + local LOG_DIR=/run/initramfs/samizdat/log + if samizdat-password-agent > "$LOG_DIR"/samizdat-password-agent.log 2>&1; then clear true else -- cgit v1.2.3