units: replace symlinks in units/user/ by real files
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Dec 2018 19:19:45 +0000 (20:19 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Dec 2018 19:23:43 +0000 (20:23 +0100)
We already *install* those as real files since de78fa9ba0be55b01066ca5a716c6673d76b817b.
Meson will start to copy symlinks as-is, so we would get dangling symlinks in
/usr/lib/systemd/user/.

I considered the layout in our sources to match the layout in the installation
filesystem (i.e. creating units/system/ and moving all files from units/ to
units/system/), but that seems overkill. By using normal files for both we get
some duplication, but those files change rarely, so it's not a big downside in
practice.

Fixes #9906.

units/user/bluetooth.target [changed from symlink to file mode: 0644]
units/user/paths.target [changed from symlink to file mode: 0644]
units/user/printer.target [changed from symlink to file mode: 0644]
units/user/shutdown.target [changed from symlink to file mode: 0644]
units/user/smartcard.target [changed from symlink to file mode: 0644]
units/user/sockets.target [changed from symlink to file mode: 0644]
units/user/sound.target [changed from symlink to file mode: 0644]
units/user/timers.target [changed from symlink to file mode: 0644]

deleted file mode 120000 (symlink)
index 72e74be0a10ce7f432533308e49bfd708301d2ae..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../bluetooth.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..62407d363e4ab4af3b368593ea9c5a7643399fde
--- /dev/null
@@ -0,0 +1,13 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Bluetooth
+Documentation=man:systemd.special(7)
+StopWhenUnneeded=yes
deleted file mode 120000 (symlink)
index 33545d24f31a23abf57e3c902c8f8ca076b1e1d7..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../paths.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..9b6ed1c13feec452f236b8314fea492b89d62337
--- /dev/null
@@ -0,0 +1,12 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Paths
+Documentation=man:systemd.special(7)
deleted file mode 120000 (symlink)
index 8b8d5511cd96f086c183569b185db42e75a26c61..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../printer.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..e1fb0d4e347573397b6feae24ccd41cf88470e86
--- /dev/null
@@ -0,0 +1,13 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Printer
+Documentation=man:systemd.special(7)
+StopWhenUnneeded=yes
deleted file mode 120000 (symlink)
index a9de83782f504264f30d219270f0179d4e4ab97d..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../shutdown.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..d48e6d6494275b02b606f4265d9fc6414b3eb048
--- /dev/null
@@ -0,0 +1,14 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Shutdown
+Documentation=man:systemd.special(7)
+DefaultDependencies=no
+RefuseManualStart=yes
deleted file mode 120000 (symlink)
index f7a23b6b6dfc2f1f9b522bb276076b200d17112c..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../smartcard.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..717ea2311dfcce6709f58984a8d8bece9c5b601e
--- /dev/null
@@ -0,0 +1,13 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Smart Card
+Documentation=man:systemd.special(7)
+StopWhenUnneeded=yes
deleted file mode 120000 (symlink)
index a9e4b971846565f45d5fa5fc7fd80118ff106a4b..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../sockets.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..9af67fdb1faaf729249f3d989c02714d4633c429
--- /dev/null
@@ -0,0 +1,12 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Sockets
+Documentation=man:systemd.special(7)
deleted file mode 120000 (symlink)
index 17c8e9d6e14ac9fb4456c3de328e0e07843461a6..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../sound.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..19afc2a63735118a005930f2192b454d85ee3ef4
--- /dev/null
@@ -0,0 +1,13 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Sound Card
+Documentation=man:systemd.special(7)
+StopWhenUnneeded=yes
deleted file mode 120000 (symlink)
index f98b68a84d8aaaaa0f77d15994e39fd01f9a6597..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../timers.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..b1aa8c797ccdb3124e53b63a6f40f2e3fa595357
--- /dev/null
@@ -0,0 +1,15 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Timers
+Documentation=man:systemd.special(7)
+
+DefaultDependencies=no
+Conflicts=shutdown.target