mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
test-fstab-generator: add more tests for systemd.mount-extra= and friends
This commit is contained in:
parent
aeded6b0b5
commit
03de154a1e
@ -0,0 +1,12 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
Before=local-fs.target
|
||||
After=blockdev@dev-sdx6.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/sdx6
|
||||
Where=/foo/also_in_initrd
|
||||
Options=x-initrd.mount
|
@ -0,0 +1,11 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
Before=local-fs.target
|
||||
After=blockdev@dev-sdx7.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/sdx7
|
||||
Where=/foo/not_in_initrd
|
@ -0,0 +1 @@
|
||||
../foo-also_in_initrd.mount
|
@ -0,0 +1 @@
|
||||
../foo-not_in_initrd.mount
|
@ -0,0 +1 @@
|
||||
../usr.mount
|
@ -0,0 +1,11 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
Before=local-fs.target
|
||||
After=blockdev@dev-sdx5.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/sdx5
|
||||
Where=/usr
|
@ -0,0 +1 @@
|
||||
../sysroot-foo-also_in_initrd.mount
|
@ -0,0 +1 @@
|
||||
../sysroot-usr.mount
|
@ -0,0 +1 @@
|
||||
../sysusr-usr.mount
|
@ -0,0 +1,13 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
Before=initrd-fs.target
|
||||
After=blockdev@dev-sdx6.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/sdx6
|
||||
# Canonicalized from /foo/also_in_initrd
|
||||
Where=/sysroot/foo/also_in_initrd
|
||||
Options=x-initrd.mount
|
@ -0,0 +1,11 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
Before=initrd-fs.target
|
||||
|
||||
[Mount]
|
||||
What=/sysusr/usr
|
||||
Where=/sysroot/usr
|
||||
Options=bind
|
@ -0,0 +1,11 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
Before=initrd-usr-fs.target
|
||||
After=blockdev@dev-sdx5.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/sdx5
|
||||
Where=/sysusr/usr
|
@ -3,3 +3,6 @@ rd.systemd.mount-extra=/dev/sdx2:/hoge/without_options:auto
|
||||
rd.systemd.mount-extra=/dev/sdx3:/hoge/without_fstype
|
||||
rd.systemd.mount-extra=/dev/sdx4
|
||||
rd.systemd.mount-extra=//foo\ufffebar:/hoge/with\x20space:cifs:rw,seclabel
|
||||
systemd.mount-extra=/dev/sdx5:/usr:auto:defaults
|
||||
systemd.mount-extra=/dev/sdx6:/foo/also_in_initrd:auto:x-initrd.mount
|
||||
systemd.mount-extra=/dev/sdx7:/foo/not_in_initrd:auto:defaults
|
||||
|
@ -0,0 +1,10 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
After=blockdev@dev-sdy5.target
|
||||
|
||||
[Swap]
|
||||
What=/dev/sdy5
|
||||
Options=x-initrd.mount
|
@ -0,0 +1,9 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
After=blockdev@dev-sdy6.target
|
||||
|
||||
[Swap]
|
||||
What=/dev/sdy6
|
@ -0,0 +1 @@
|
||||
../dev-sdy5.swap
|
@ -0,0 +1 @@
|
||||
../dev-sdy6.swap
|
@ -0,0 +1,10 @@
|
||||
# Automatically generated by systemd-fstab-generator
|
||||
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/proc/cmdline
|
||||
After=blockdev@dev-sdy5.target
|
||||
|
||||
[Swap]
|
||||
What=/dev/sdy5
|
||||
Options=x-initrd.mount
|
@ -0,0 +1 @@
|
||||
../dev-sdy5.swap
|
@ -2,3 +2,5 @@ rd.systemd.mount-extra=/dev/sdy1:none:swap
|
||||
rd.systemd.mount-extra=/dev/sdy2:none:swap:x-systemd.makefs
|
||||
rd.systemd.swap-extra=/dev/sdy3:x-systemd.makefs,nofail
|
||||
rd.systemd.swap-extra=/dev/sdy4
|
||||
systemd.swap-extra=/dev/sdy5:x-initrd.mount
|
||||
systemd.swap-extra=/dev/sdy6
|
||||
|
Loading…
Reference in New Issue
Block a user