Merge pull request #30284 from YHNdnzj/fstab-wantedby-defaultdeps
fstab-generator: disable default deps if x-systemd.{wanted,required}-by= is used
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
../mnt-wantedby-automount.automount
|
||||
+3
-1
@@ -3,7 +3,9 @@
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/etc/fstab
|
||||
Before=local-fs.target
|
||||
DefaultDependencies=no
|
||||
Conflicts=umount.target
|
||||
Before=umount.target
|
||||
After=blockdev@dev-sdx8.target
|
||||
|
||||
[Mount]
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
SourcePath=/etc/fstab
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
|
||||
[Automount]
|
||||
Where=/mnt/wantedby-automount
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/etc/fstab
|
||||
DefaultDependencies=no
|
||||
Conflicts=umount.target
|
||||
Before=umount.target
|
||||
After=blockdev@dev-sdx17.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/sdx17
|
||||
Where=/mnt/wantedby
|
||||
Options=x-systemd.wanted-by=foo.service,x-systemd.automount
|
||||
@@ -3,7 +3,9 @@
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/etc/fstab
|
||||
Before=local-fs.target
|
||||
DefaultDependencies=no
|
||||
Conflicts=umount.target
|
||||
Before=umount.target
|
||||
After=blockdev@dev-sdx7.target
|
||||
|
||||
[Mount]
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
../mnt-wantedby-automount.automount
|
||||
@@ -3,7 +3,9 @@
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/etc/fstab
|
||||
Before=local-fs.target
|
||||
DefaultDependencies=no
|
||||
Conflicts=umount.target
|
||||
Before=umount.target
|
||||
After=blockdev@dev-sdx8.target
|
||||
|
||||
[Mount]
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
SourcePath=/etc/fstab
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
|
||||
[Automount]
|
||||
Where=/mnt/wantedby-automount
|
||||
@@ -0,0 +1,14 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/etc/fstab
|
||||
DefaultDependencies=no
|
||||
Conflicts=umount.target
|
||||
Before=umount.target
|
||||
After=blockdev@dev-sdx17.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/sdx17
|
||||
Where=/mnt/wantedby
|
||||
Options=x-systemd.wanted-by=foo.service,x-systemd.automount
|
||||
@@ -3,7 +3,9 @@
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/etc/fstab
|
||||
Before=local-fs.target
|
||||
DefaultDependencies=no
|
||||
Conflicts=umount.target
|
||||
Before=umount.target
|
||||
After=blockdev@dev-sdx7.target
|
||||
|
||||
[Mount]
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
/dev/sdx1 /sysroot auto defaults 0 1
|
||||
/dev/sdx2 /mnt/timeout auto x-systemd.mount-timeout=10m 0 0
|
||||
/dev/sdx3 /mnt/after auto x-systemd.after=foo.service 0 0
|
||||
/dev/sdx4 /mnt/before auto x-systemd.before=foo.service 0 0
|
||||
/dev/sdx5 /mnt/requires auto x-systemd.requires=foo.service 0 0
|
||||
/dev/sdx6 /mnt/reqmounts auto x-systemd.requires-mounts-for=/hoge 0 0
|
||||
/dev/sdx7 /mnt/wantedby auto x-systemd.wanted-by=foo.service 0 0
|
||||
/dev/sdx8 /mnt/requiredby auto x-systemd.required-by=foo.service 0 0
|
||||
/dev/sdx9 /mnt/automount1 auto x-systemd.automount,x-systemd.idle-timeout=30m 0 0
|
||||
/dev/sdx10 /mnt/automount2 auto x-systemd.automount,nofail 0 0
|
||||
/dev/sdx11 /mnt/rwonly auto x-systemd.rw-only 0 0
|
||||
/dev/sdx12 /mnt/mkfs ext4 x-systemd.makefs 0 0
|
||||
/dev/sdx13 /mnt/growfs auto x-systemd.growfs 0 0
|
||||
/dev/sdx14 /mnt/pcrfs auto x-systemd.pcrfs 0 0
|
||||
/dev/sdx15 /mnt/noauto auto noauto 0 0
|
||||
/dev/sdx16 /mnt/nofail auto nofail 0 0
|
||||
/dev/sdx1 /sysroot auto defaults 0 1
|
||||
/dev/sdx2 /mnt/timeout auto x-systemd.mount-timeout=10m 0 0
|
||||
/dev/sdx3 /mnt/after auto x-systemd.after=foo.service 0 0
|
||||
/dev/sdx4 /mnt/before auto x-systemd.before=foo.service 0 0
|
||||
/dev/sdx5 /mnt/requires auto x-systemd.requires=foo.service 0 0
|
||||
/dev/sdx6 /mnt/reqmounts auto x-systemd.requires-mounts-for=/hoge 0 0
|
||||
/dev/sdx7 /mnt/wantedby auto x-systemd.wanted-by=foo.service 0 0
|
||||
/dev/sdx8 /mnt/requiredby auto x-systemd.required-by=foo.service 0 0
|
||||
/dev/sdx9 /mnt/automount1 auto x-systemd.automount,x-systemd.idle-timeout=30m 0 0
|
||||
/dev/sdx10 /mnt/automount2 auto x-systemd.automount,nofail 0 0
|
||||
/dev/sdx11 /mnt/rwonly auto x-systemd.rw-only 0 0
|
||||
/dev/sdx12 /mnt/mkfs ext4 x-systemd.makefs 0 0
|
||||
/dev/sdx13 /mnt/growfs auto x-systemd.growfs 0 0
|
||||
/dev/sdx14 /mnt/pcrfs auto x-systemd.pcrfs 0 0
|
||||
/dev/sdx15 /mnt/noauto auto noauto 0 0
|
||||
/dev/sdx16 /mnt/nofail auto nofail 0 0
|
||||
/dev/sdx17 /mnt/wantedby-automount auto x-systemd.wanted-by=foo.service,x-systemd.automount 0 0
|
||||
|
||||
Reference in New Issue
Block a user