Skip to content

Commit 8ab6468

Browse files
committed
base: Fix path to systemd services
The location of the systemd services is, by definition, in /usr/lib/systemd/system. $WORK/lib/systemd/system can accidentally work on some Distros that have a /lib -> usr/lib symlink, but it's better to not rely on such things.
1 parent 0c43d9c commit 8ab6468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/base.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ add_firstrun() {
149149
AFTER="systemd-networkd-wait-online.service"
150150
fi
151151

152-
if [ -d "$WORK/lib/systemd/system" ]; then
152+
if [ -d "$WORK/usr/lib/systemd/system" ]; then
153153
# systemd method
154-
cat >"$WORK/lib/systemd/system/cloud-firstrun.service" <<EOF
154+
cat >"$WORK/usr/lib/systemd/system/cloud-firstrun.service" <<EOF
155155
[Unit]
156156
Description=Cloud firstrun handler
157157
ConditionFileIsExecutable=/.firstrun.sh

0 commit comments

Comments
 (0)