|
|
fab351 |
From a34b1baa6ca45b420399ec4cefe3cfe225c14dcf Mon Sep 17 00:00:00 2001
|
|
|
fab351 |
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
|
fab351 |
Date: Tue, 11 Jun 2019 09:56:13 +0200
|
|
|
fab351 |
Subject: [PATCH] test/{10,12,13,14,17,30,31}: increase the disk sizes
|
|
|
fab351 |
|
|
|
fab351 |
On Fedora 30 the paritition sizes turn out to be too small again:
|
|
|
fab351 |
|
|
|
fab351 |
+ mkdir -p /sysroot
|
|
|
fab351 |
+ mount /dev/dracut/root /sysroot
|
|
|
fab351 |
+ cp -a -t /sysroot /source/bin /source/dev /source/etc /source/lib /source/lib64 /source/proc /source/root /source/sbin /source/sys /source/tmp /source/usr /source/var
|
|
|
fab351 |
cp: error writing '/sysroot/usr/lib64/libkrb5.so.3.3': No space left on device
|
|
|
fab351 |
cp: error writing '/sysroot/usr/lib64/libkrb5support.so.0.1': No space left on device
|
|
|
fab351 |
|
|
|
fab351 |
It turns out that there has been quite some size increase in some libraries,
|
|
|
fab351 |
notably glibc, though not all -- some even shrunk, ruling out a toolchain
|
|
|
fab351 |
problem. Here's are files over 1M we install on Fedora 30:
|
|
|
fab351 |
|
|
|
fab351 |
f29 f30
|
|
|
fab351 |
2.7M => 6.4M /usr/lib64/{libc-2.28.so => libc-2.29.so}
|
|
|
fab351 |
3.1M => 6.0M /usr/lib64/libcrypto.so.1.1.1c
|
|
|
fab351 |
2.0M => 3.5M /usr/lib64/{libm-2.28.so => libm-2.29.so}
|
|
|
fab351 |
2.9M => 2.8M /usr/lib/systemd/{libsystemd-shared-239.so => libsystemd-shared-241.so}
|
|
|
fab351 |
1.7M => 2.5M /usr/lib64/libunistring.so.2.1.0
|
|
|
fab351 |
2.3M => 2.4M /usr/lib64/bind9-export/libdns-export.so.1105.0.0
|
|
|
fab351 |
1.2M => 2.1M /usr/bin/bash
|
|
|
fab351 |
1.1M => 1.4M /usr/lib64/libkrb5.so.3.3
|
|
|
fab351 |
1.2M => 1.4M /usr/lib64/libgcrypt.so.20.2.4
|
|
|
fab351 |
612K => 1.1M /usr/lib64/libssl.so.1.1.1c
|
|
|
fab351 |
|
|
|
fab351 |
This increases the image sizes to accomodate for this. There's probably
|
|
|
fab351 |
little else we can do.
|
|
|
fab351 |
|
|
|
fab351 |
(cherry picked from commit e318ba30fbd84d510a5bbb071d868e523d965869)
|
|
|
fab351 |
---
|
|
|
fab351 |
test/TEST-10-RAID/create-root.sh | 6 +++---
|
|
|
fab351 |
test/TEST-10-RAID/test.sh | 2 +-
|
|
|
fab351 |
test/TEST-12-RAID-DEG/test.sh | 6 +++---
|
|
|
fab351 |
test/TEST-13-ENC-RAID-LVM/create-root.sh | 6 +++---
|
|
|
fab351 |
test/TEST-13-ENC-RAID-LVM/test.sh | 2 +-
|
|
|
fab351 |
test/TEST-14-IMSM/create-root.sh | 6 +++---
|
|
|
fab351 |
test/TEST-14-IMSM/test.sh | 4 ++--
|
|
|
fab351 |
test/TEST-17-LVM-THIN/create-root.sh | 8 ++++----
|
|
|
fab351 |
test/TEST-17-LVM-THIN/test.sh | 2 +-
|
|
|
fab351 |
test/TEST-30-ISCSI/test.sh | 6 +++---
|
|
|
fab351 |
test/TEST-31-ISCSI-MULTI/test.sh | 6 +++---
|
|
|
fab351 |
11 files changed, 27 insertions(+), 27 deletions(-)
|
|
|
fab351 |
|
|
|
fab351 |
diff --git a/test/TEST-10-RAID/create-root.sh b/test/TEST-10-RAID/create-root.sh
|
|
|
fab351 |
index 7b5f2a76..af4cac0d 100755
|
|
|
fab351 |
--- a/test/TEST-10-RAID/create-root.sh
|
|
|
fab351 |
+++ b/test/TEST-10-RAID/create-root.sh
|
|
|
fab351 |
@@ -8,9 +8,9 @@ udevadm control --reload
|
|
|
fab351 |
# save a partition at the beginning for future flagging purposes
|
|
|
fab351 |
sfdisk /dev/sda <
|
|
|
fab351 |
,4M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
+,41M
|
|
|
fab351 |
+,41M
|
|
|
fab351 |
+,41M
|
|
|
fab351 |
EOF
|
|
|
fab351 |
udevadm settle
|
|
|
fab351 |
mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/sda2 /dev/sda3 /dev/sda4
|
|
|
fab351 |
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
|
|
|
fab351 |
index 0beb26c3..07179a29 100755
|
|
|
fab351 |
--- a/test/TEST-10-RAID/test.sh
|
|
|
fab351 |
+++ b/test/TEST-10-RAID/test.sh
|
|
|
fab351 |
@@ -22,7 +22,7 @@ test_setup() {
|
|
|
fab351 |
DISKIMAGE=$TESTDIR/TEST-10-RAID-root.img
|
|
|
fab351 |
# Create the blank file to use as a root filesystem
|
|
|
fab351 |
rm -f -- $DISKIMAGE
|
|
|
fab351 |
- dd if=/dev/null of=$DISKIMAGE bs=1M seek=80
|
|
|
fab351 |
+ dd if=/dev/null of=$DISKIMAGE bs=1M seek=128
|
|
|
fab351 |
|
|
|
fab351 |
kernel=$KVERSION
|
|
|
fab351 |
# Create what will eventually be our root filesystem onto an overlay
|
|
|
fab351 |
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
|
|
|
fab351 |
index c82cde1e..920baafd 100755
|
|
|
fab351 |
--- a/test/TEST-12-RAID-DEG/test.sh
|
|
|
fab351 |
+++ b/test/TEST-12-RAID-DEG/test.sh
|
|
|
fab351 |
@@ -59,9 +59,9 @@ test_setup() {
|
|
|
fab351 |
# Create the blank file to use as a root filesystem
|
|
|
fab351 |
rm -f -- $TESTDIR/root.ext2
|
|
|
fab351 |
dd if=/dev/null of=$TESTDIR/root.ext2 bs=1M seek=40
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/disk1.img bs=1M seek=20
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/disk2.img bs=1M seek=20
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/disk3.img bs=1M seek=20
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/disk1.img bs=1M seek=35
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/disk2.img bs=1M seek=35
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/disk3.img bs=1M seek=35
|
|
|
fab351 |
|
|
|
fab351 |
kernel=$KVERSION
|
|
|
fab351 |
# Create what will eventually be our root filesystem onto an overlay
|
|
|
fab351 |
diff --git a/test/TEST-13-ENC-RAID-LVM/create-root.sh b/test/TEST-13-ENC-RAID-LVM/create-root.sh
|
|
|
fab351 |
index 72bc765f..13e65838 100755
|
|
|
fab351 |
--- a/test/TEST-13-ENC-RAID-LVM/create-root.sh
|
|
|
fab351 |
+++ b/test/TEST-13-ENC-RAID-LVM/create-root.sh
|
|
|
fab351 |
@@ -9,9 +9,9 @@ udevadm control --reload
|
|
|
fab351 |
# save a partition at the beginning for future flagging purposes
|
|
|
fab351 |
sfdisk /dev/sda <
|
|
|
fab351 |
,4M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
+,43M
|
|
|
fab351 |
+,43M
|
|
|
fab351 |
+,43M
|
|
|
fab351 |
EOF
|
|
|
fab351 |
udevadm settle
|
|
|
fab351 |
printf test >keyfile
|
|
|
fab351 |
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
fab351 |
index 99324ce9..9ffe24b1 100755
|
|
|
fab351 |
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
fab351 |
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
fab351 |
@@ -59,7 +59,7 @@ test_run() {
|
|
|
fab351 |
test_setup() {
|
|
|
fab351 |
# Create the blank file to use as a root filesystem
|
|
|
fab351 |
rm -f -- $TESTDIR/root.ext2
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/root.ext2 bs=1M seek=80
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/root.ext2 bs=1M seek=134
|
|
|
fab351 |
|
|
|
fab351 |
kernel=$KVERSION
|
|
|
fab351 |
# Create what will eventually be our root filesystem onto an overlay
|
|
|
fab351 |
diff --git a/test/TEST-14-IMSM/create-root.sh b/test/TEST-14-IMSM/create-root.sh
|
|
|
fab351 |
index a0324c6f..0d10945b 100755
|
|
|
fab351 |
--- a/test/TEST-14-IMSM/create-root.sh
|
|
|
fab351 |
+++ b/test/TEST-14-IMSM/create-root.sh
|
|
|
fab351 |
@@ -32,9 +32,9 @@ sfdisk -g /dev/mapper/isw*Test0
|
|
|
fab351 |
# save a partition at the beginning for future flagging purposes
|
|
|
fab351 |
sfdisk --no-reread /dev/mapper/isw*Test0 <
|
|
|
fab351 |
,4M
|
|
|
fab351 |
-,20M
|
|
|
fab351 |
-,20M
|
|
|
fab351 |
-,20M
|
|
|
fab351 |
+,28M
|
|
|
fab351 |
+,28M
|
|
|
fab351 |
+,28M
|
|
|
fab351 |
EOF
|
|
|
fab351 |
|
|
|
fab351 |
udevadm settle
|
|
|
fab351 |
diff --git a/test/TEST-14-IMSM/test.sh b/test/TEST-14-IMSM/test.sh
|
|
|
fab351 |
index ed60f052..a3e52b53 100755
|
|
|
fab351 |
--- a/test/TEST-14-IMSM/test.sh
|
|
|
fab351 |
+++ b/test/TEST-14-IMSM/test.sh
|
|
|
fab351 |
@@ -53,8 +53,8 @@ test_setup() {
|
|
|
fab351 |
rm -f -- $TESTDIR/disk1
|
|
|
fab351 |
rm -f -- $TESTDIR/disk2
|
|
|
fab351 |
dd if=/dev/null of=$TESTDIR/root.ext2 bs=1M seek=1
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/disk1 bs=1M seek=80
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/disk2 bs=1M seek=80
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/disk1 bs=1M seek=104
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/disk2 bs=1M seek=104
|
|
|
fab351 |
|
|
|
fab351 |
kernel=$KVERSION
|
|
|
fab351 |
# Create what will eventually be our root filesystem onto an overlay
|
|
|
fab351 |
diff --git a/test/TEST-17-LVM-THIN/create-root.sh b/test/TEST-17-LVM-THIN/create-root.sh
|
|
|
fab351 |
index 0e52f879..6e09012e 100755
|
|
|
fab351 |
--- a/test/TEST-17-LVM-THIN/create-root.sh
|
|
|
fab351 |
+++ b/test/TEST-17-LVM-THIN/create-root.sh
|
|
|
fab351 |
@@ -8,16 +8,16 @@ udevadm control --reload
|
|
|
fab351 |
# save a partition at the beginning for future flagging purposes
|
|
|
fab351 |
sfdisk /dev/sda <
|
|
|
fab351 |
,4M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
-,25M
|
|
|
fab351 |
+,29M
|
|
|
fab351 |
+,29M
|
|
|
fab351 |
+,29M
|
|
|
fab351 |
EOF
|
|
|
fab351 |
udevadm settle
|
|
|
fab351 |
for i in sda2 sda3 sda4; do
|
|
|
fab351 |
lvm pvcreate -ff -y /dev/$i ;
|
|
|
fab351 |
done && \
|
|
|
fab351 |
lvm vgcreate dracut /dev/sda[234] && \
|
|
|
fab351 |
-lvm lvcreate -l 16 -T dracut/mythinpool && \
|
|
|
fab351 |
+lvm lvcreate -l 17 -T dracut/mythinpool && \
|
|
|
fab351 |
lvm lvcreate -V1G -T dracut/mythinpool -n root && \
|
|
|
fab351 |
lvm vgchange -ay && \
|
|
|
fab351 |
mke2fs /dev/dracut/root && \
|
|
|
fab351 |
diff --git a/test/TEST-17-LVM-THIN/test.sh b/test/TEST-17-LVM-THIN/test.sh
|
|
|
fab351 |
index c13e9063..c7247c91 100755
|
|
|
fab351 |
--- a/test/TEST-17-LVM-THIN/test.sh
|
|
|
fab351 |
+++ b/test/TEST-17-LVM-THIN/test.sh
|
|
|
fab351 |
@@ -19,7 +19,7 @@ test_run() {
|
|
|
fab351 |
|
|
|
fab351 |
test_setup() {
|
|
|
fab351 |
# Create the blank file to use as a root filesystem
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/root.ext2 bs=1M seek=80
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/root.ext2 bs=1M seek=92
|
|
|
fab351 |
|
|
|
fab351 |
kernel=$KVERSION
|
|
|
fab351 |
# Create what will eventually be our root filesystem onto an overlay
|
|
|
fab351 |
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
|
|
|
fab351 |
index d5a6ba58..c126e3dd 100755
|
|
|
fab351 |
--- a/test/TEST-30-ISCSI/test.sh
|
|
|
fab351 |
+++ b/test/TEST-30-ISCSI/test.sh
|
|
|
fab351 |
@@ -109,9 +109,9 @@ test_setup() {
|
|
|
fab351 |
fi
|
|
|
fab351 |
|
|
|
fab351 |
# Create the blank file to use as a root filesystem
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/root.ext3 bs=1M seek=40
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/iscsidisk2.img bs=1M seek=40
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/iscsidisk3.img bs=1M seek=40
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/root.ext3 bs=1M seek=45
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/iscsidisk2.img bs=1M seek=45
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/iscsidisk3.img bs=1M seek=45
|
|
|
fab351 |
|
|
|
fab351 |
kernel=$KVERSION
|
|
|
fab351 |
# Create what will eventually be our root filesystem onto an overlay
|
|
|
fab351 |
diff --git a/test/TEST-31-ISCSI-MULTI/test.sh b/test/TEST-31-ISCSI-MULTI/test.sh
|
|
|
fab351 |
index 20db2451..122c69e3 100755
|
|
|
fab351 |
--- a/test/TEST-31-ISCSI-MULTI/test.sh
|
|
|
fab351 |
+++ b/test/TEST-31-ISCSI-MULTI/test.sh
|
|
|
fab351 |
@@ -131,9 +131,9 @@ test_setup() {
|
|
|
fab351 |
fi
|
|
|
fab351 |
|
|
|
fab351 |
# Create the blank file to use as a root filesystem
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/root.ext3 bs=1M seek=40
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/iscsidisk2.img bs=1M seek=40
|
|
|
fab351 |
- dd if=/dev/null of=$TESTDIR/iscsidisk3.img bs=1M seek=40
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/root.ext3 bs=1M seek=45
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/iscsidisk2.img bs=1M seek=45
|
|
|
fab351 |
+ dd if=/dev/null of=$TESTDIR/iscsidisk3.img bs=1M seek=45
|
|
|
fab351 |
|
|
|
fab351 |
kernel=$KVERSION
|
|
|
fab351 |
# Create what will eventually be our root filesystem onto an overlay
|
|
|
fab351 |
|