Merge pull request #1901 from evverx/various-fixes

Various fixes
This commit is contained in:
Lennart Poettering
2015-11-15 19:46:00 +01:00
2 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -542,7 +542,7 @@ static int process_root_password(void) {
lock = take_etc_passwd_lock(arg_root);
if (lock < 0)
return lock;
return log_error_errno(lock, "Failed to take a lock: %m");
if (arg_copy_root_password && arg_root) {
struct spwd *p;
+11 -6
View File
@@ -179,12 +179,17 @@ EOF
}
install_execs() {
# install any Execs from the service files
egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/lib/systemd/system/*.service \
| while read i; do
i=${i##Exec*=}; i=${i##-}
inst $i
done
ddebug "install any Execs from the service files"
(
export PKG_CONFIG_PATH=$TEST_BASE_DIR/../src/core/
systemdsystemunitdir=$(pkg-config --variable=systemdsystemunitdir systemd)
systemduserunitdir=$(pkg-config --variable=systemduserunitdir systemd)
egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
| while read i; do
i=${i##Exec*=}; i=${i##-}
inst $i
done
)
}
generate_module_dependencies() {