mirror of
https://github.com/systemd/systemd
synced 2026-04-22 23:15:20 +02:00
Compare commits
4 Commits
3b591ebbd1
...
c8a4306e63
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8a4306e63 | ||
|
|
6626ea08f6 | ||
|
|
8c166c962d | ||
|
|
cc75e1f7c9 |
@ -172,9 +172,13 @@ rm -r /tmp/testsuite-58.3-defs/
|
|||||||
|
|
||||||
# testcase for #21817
|
# testcase for #21817
|
||||||
mkdir -p /tmp/testsuite-58-issue-21817-defs/
|
mkdir -p /tmp/testsuite-58-issue-21817-defs/
|
||||||
truncate -s 100m /tmp/testsuite-58-issue-21817.img
|
truncate -s 100m /var/tmp/testsuite-58-issue-21817.img
|
||||||
LOOP=$(losetup -P --show -f /tmp/testsuite-58-issue-21817.img)
|
LOOP=$(losetup -P --show -f /var/tmp/testsuite-58-issue-21817.img)
|
||||||
printf 'size=50M,type=%s\n,\n' "${root_guid}" | sfdisk -X gpt /tmp/testsuite-58-issue-21817.img
|
while : ; do
|
||||||
|
test -e "$LOOP" && break
|
||||||
|
sleep .2
|
||||||
|
done
|
||||||
|
printf 'size=50M,type=%s\n,\n' "${root_guid}" | sfdisk -X gpt "$LOOP"
|
||||||
cat >/tmp/testsuite-58-issue-21817-defs/test.conf <<EOF
|
cat >/tmp/testsuite-58-issue-21817-defs/test.conf <<EOF
|
||||||
[Partition]
|
[Partition]
|
||||||
Type=root
|
Type=root
|
||||||
@ -187,7 +191,7 @@ grep -qiF "p1 : start= 2048, size= 102400, type=${root_guid}," /tmp/
|
|||||||
# Accept both unpadded (pre-v2.38 util-linux) and padded (v2.38+ util-linux) sizes
|
# Accept both unpadded (pre-v2.38 util-linux) and padded (v2.38+ util-linux) sizes
|
||||||
grep -qE "p2 : start= 104448, size= (100319| 98304)," /tmp/testsuite-58-issue-21817.dump
|
grep -qE "p2 : start= 104448, size= (100319| 98304)," /tmp/testsuite-58-issue-21817.dump
|
||||||
|
|
||||||
rm /tmp/testsuite-58-issue-21817.img /tmp/testsuite-58-issue-21817.dump
|
rm /var/tmp/testsuite-58-issue-21817.img /tmp/testsuite-58-issue-21817.dump
|
||||||
rm -r /tmp/testsuite-58-issue-21817-defs/
|
rm -r /tmp/testsuite-58-issue-21817-defs/
|
||||||
|
|
||||||
testsector()
|
testsector()
|
||||||
@ -215,6 +219,10 @@ EOF
|
|||||||
|
|
||||||
truncate -s 100m "/tmp/testsuite-58-sector-$1.img"
|
truncate -s 100m "/tmp/testsuite-58-sector-$1.img"
|
||||||
LOOP=$(losetup -b "$1" -P --show -f "/tmp/testsuite-58-sector-$1.img" )
|
LOOP=$(losetup -b "$1" -P --show -f "/tmp/testsuite-58-sector-$1.img" )
|
||||||
|
while : ; do
|
||||||
|
test -e "$LOOP" && break
|
||||||
|
sleep .2
|
||||||
|
done
|
||||||
systemd-repart --pretty=yes --definitions=/tmp/testsuite-58-sector/ --seed=750b6cd5c4ae4012a15e7be3c29e6a47 --empty=require --dry-run=no "$LOOP"
|
systemd-repart --pretty=yes --definitions=/tmp/testsuite-58-sector/ --seed=750b6cd5c4ae4012a15e7be3c29e6a47 --empty=require --dry-run=no "$LOOP"
|
||||||
rm -rf /tmp/testsuite-58-sector
|
rm -rf /tmp/testsuite-58-sector
|
||||||
sfdisk --verify "$LOOP"
|
sfdisk --verify "$LOOP"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user