summaryrefslogtreecommitdiffstats
path: root/test/test-fstab-generator (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fstab-generator: disable default deps if x-systemd.{wanted,required}-by= is usedMike Yuan2023-12-1111-20/+75
| | | | Fixes #30273
* fstab-generator: enable fsck for block device mounts specified in ↵Yu Watanabe2023-07-2810-0/+50
| | | | | | | | | | | | systemd.mount-extra= Like we do for root= or so. Another possible option is adding support of fifth (sixth?) field in systemd.mount-extra=. But that may be overkill, hence let's do that later if someone request that. Fixes fsck part of issue #28541.
* test-fstab-generator: add more tests for systemd.mount-extra= and friendsYu Watanabe2023-07-2620-0/+112
|
* test-fstab-generator: also test with SYSTEMD_IN_INITRD=noYu Watanabe2023-07-2643-0/+280
|
* fstab-generator: add rd.systemd.mount-extra= and friendsYu Watanabe2023-07-262-9/+9
| | | | | | | | | | | | | Previously, mounts specified in systemd.mount-extra= are equally handled both in initrd and the main system. So, the mounts for the main system are also mounted in initrd. This introduces rd.systemd.mount-extra=, which specifies mounts in initrd. Then, mounts specified in systemd.mount-extra= are still mounted both in initrd and the main system, but prefixed with /sysroot/ when running in initrd. Fixes #28516.
* generators: change TimeoutSec=0 to TimeoutSec=infinityLennart Poettering2023-06-069-9/+9
| | | | | | | | | | | | | | | With these settings we intend to turn off timeouts for possibly interactive/slow commands. The officially documented way to turn off the time-outs is to setting them to infinity. So far we set them to zero here though. This lead to some confusiong, for example #18224. Let's fix this by uniformly spelling out TimeoutSec=infinity. This doesn't change behaviour. It just makes our generated files match what we document, without relying on historic compat support. Fixes: #18224
* test: add test cases for defining mount and swap units from kernel cmdlineYu Watanabe2023-05-2426-0/+144
|
* test-fstab-generator: add tests for mount optionsYu Watanabe2023-05-2441-0/+293
|
* test-fstab-generator: also check file contentsYu Watanabe2023-05-2419-0/+19
| | | | | Since e683878c0f03a4ffa123e37b27933fbf7e144901, only filenames are checked. Let's check contents of generated unit files.
* test: add fstab file support for fstab-generator testsLily Foster2023-01-2610-0/+58
|
* test: store empty files rather than symlinks for test-fstab-generatorLuca Boccassi2022-01-0921-21/+0
| | | | | | | | | Dangling symlinks get pruned when packaging up the installation directory. Just store empty files instead, and compare the names rather than the content for .requires/.wants - the filename is what is important anyway, the content is ignored. Fixes #22059
* test: add test cases for fstab-generatorYu Watanabe2022-01-0651-0/+190