mirror of
https://github.com/systemd/systemd
synced 2026-04-23 07:24:51 +02:00
Compare commits
No commits in common. "c8a4306e63a5387813e6e01164e5303e28dc60dc" and "3b591ebbd1c769fd480ff386fd9d714403f44c56" have entirely different histories.
c8a4306e63
...
3b591ebbd1
@ -172,13 +172,9 @@ 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 /var/tmp/testsuite-58-issue-21817.img
|
truncate -s 100m /tmp/testsuite-58-issue-21817.img
|
||||||
LOOP=$(losetup -P --show -f /var/tmp/testsuite-58-issue-21817.img)
|
LOOP=$(losetup -P --show -f /tmp/testsuite-58-issue-21817.img)
|
||||||
while : ; do
|
printf 'size=50M,type=%s\n,\n' "${root_guid}" | sfdisk -X gpt /tmp/testsuite-58-issue-21817.img
|
||||||
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
|
||||||
@ -191,7 +187,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 /var/tmp/testsuite-58-issue-21817.img /tmp/testsuite-58-issue-21817.dump
|
rm /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()
|
||||||
@ -219,10 +215,6 @@ 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