Harald Hoyer
cdebbcc684
fix(TEST RAID-DEG): shellcheck
4 years ago
Harald Hoyer
9a52c3fdb0
style: shfmt reformat
...
reproducible with:
```
$ shfmt_version=3.0.1
$ wget "https://github.com/mvdan/sh/releases/download/v${shfmt_version}/shfmt_v${shfmt_version}_linux_amd64 " -O shfmt
$ chmod u+x shfmt
$ ./shfmt -w .
```
4 years ago
Harald Hoyer
72cba8aecd
test: sync and poweroff in create-root.sh
4 years ago
Jóhann B. Guðmundsson
9cf7b1c529
fix: always use mkdir -p
...
Ensuring that directory creations dont trigger error if directory
previously existed as well as create parent directories if needed.
4 years ago
Harald Hoyer
fc6f458c3b
TEST-12-RAID-DEG/create-root.sh: more udevadm settle
5 years ago
Harald Hoyer
d5088b1703
TEST-12-RAID-DEG: harden test
...
use whole sda as marker disk and clear it completly between test runs
5 years ago
Harald Hoyer
9ca53063ee
test: use dd to write status to marker disk
5 years ago
Harald Hoyer
fac3e9d975
TEST-12: settle before doing sfdisk
8 years ago
Mike Gilbert
5899f2f516
Replace echo -n with printf in code with a /bin/sh shebang
...
POSIX does not mandate that echo support the -n parameter.
printf has more well-defined behavior.
10 years ago
Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
10 years ago
Harald Hoyer
8a430ab25b
test: use the new sfdisk syntax without disk geometry
10 years ago
Harald Hoyer
e54d961160
test: add udev settle after sfdisk
11 years ago
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
12 years ago
Harald Hoyer
021b2fddff
test: use grep option "-F" and install /etc/os-release
12 years ago
Harald Hoyer
43cc4d84bc
change for "udevadm control": s/--reload-rules/--reload/g
12 years ago
Harald Hoyer
3f7e5358e5
crypt/crypt-run-generator.sh: do not add already existing luks
13 years ago
Harald Hoyer
513d26f7b7
TEST-12-RAID-DEG/create-root.sh: settle after deconstruct
13 years ago
Harald Hoyer
0ddc098eb0
TEST-12-RAID-DEG: improve test case
13 years ago
Harald Hoyer
5112bfc8cc
TEST-12-RAID-DEG: mkdir /run
13 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
4c2d8f5816
TEST-12-RAID-DEG: double disk space
15 years ago
Harald Hoyer
3e96d7aa33
TEST-12-RAID-DEG/create-root: filter MD_UUID only
15 years ago
Harald Hoyer
b7b6c6e1c6
test: remove lvm.conf in create-root.sh
15 years ago
Harald Hoyer
2f02ae9d45
mdraid: add rd_NO_MDADMCONF --mdadmconf --nomdadmconf
...
Copy /etc/mdadm.conf to initramfs (even for non-hostonly) if
mdadmconf="yes" is set in dracut.conf or --mdadmconf is specified on the
dracut command line.
This was done, because there seems _no_ sane way to autoassemble md raid
arrays.
also moved rd_NO_MD to an udev ENV
16 years ago
Harald Hoyer
1753a63081
TEST-12-RAID-DEG: check with root=LABEL=root
16 years ago
Warren Togami
44f1ab8285
Remove 63-luks.rules, it is no longer used
16 years ago
Harald Hoyer
d34a6d07c1
extend TEST-12-RAID-DEG to check for UUID command line parameters
16 years ago
Harald Hoyer
6281504d33
add testsuite for degraded RAID-5 array
16 years ago
Victor Lowther
1a0c05b849
Make root on local block device test completly automated.
...
We no longer require any user intervention when testing dracut on
a local block device in qemu, assuming everything passes. If things fail,
we still might need to manually kill things.
16 years ago
Victor Lowther
e314863e67
Several updates to make dracut a bit more robust.
...
First, add a check script to 99base to ensure that it will load its
prerequisites.
Second, disable the udev magic dracut normally uses when generating
test images -- it was causing random failures when creating the test
root filesystem, presumably due to race conditions between the
rootfs creation scripts and udev.
Third, consolidate the rootfs creation scripts into one script.
16 years ago
Victor Lowther
a0c2cee947
Get rid of dependency on e2mkdir
...
If we install copy-root as a mount hook, it will be run after the root fs
is mounted and it will make hte proc directory, allowing root filesystem
creation to finish without error.
16 years ago
Victor Lowther
fe9143d9ca
Move content of 00test module into the test subdir
...
The last changes made the 00test module really awkward anyways, so just
hack the test module into the initramfs in a slight more brutal fashion.
16 years ago