diff --git a/systemd-mini.spec b/systemd-mini.spec index 3c6abe35..87aa79ec 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -690,7 +690,7 @@ if [ $1 -eq 1 ]; then fi # check if /etc/machine-id is writeable and change it to readonly -[[ -w %{_sysconfdir}/machine-id ]] && chmod 444 %{_sysconfdir}/machine-id +[ ! -w %{_sysconfdir}/machine-id ] || chmod 444 %{_sysconfdir}/machine-id %if ! 0%{?bootstrap} pam-config --add --systemd || : diff --git a/systemd.spec b/systemd.spec index a8a133d2..23af17e2 100644 --- a/systemd.spec +++ b/systemd.spec @@ -688,7 +688,7 @@ if [ $1 -eq 1 ]; then fi # check if /etc/machine-id is writeable and change it to readonly -[[ -w %{_sysconfdir}/machine-id ]] && chmod 444 %{_sysconfdir}/machine-id +[ ! -w %{_sysconfdir}/machine-id ] || chmod 444 %{_sysconfdir}/machine-id %if ! 0%{?bootstrap} pam-config --add --systemd || :