Skip to content

Commit 87e20d6

Browse files
ckyrouaccgwalters
authored andcommitted
install: Reduce disk space usage of mount test
It was using 12G, reduce it down to 1G to avoid the github runner running out of space. Signed-off-by: ckyrouac <ckyrouac@redhat.com>
1 parent 40c5216 commit 87e20d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/tests-integration/src/install.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub(crate) fn run_alongside(image: &str, mut testargs: libtest_mimic::Arguments)
109109

110110
// Create a disk image with partitions for root and var
111111
let disk_img = work_dir.join("disk.img");
112-
let size = 12 * 1024 * 1024 * 1024;
112+
let size = 1024 * 1024 * 1024; // 1 GiB
113113
let disk_file = std::fs::File::create(&disk_img)?;
114114
disk_file.set_len(size)?;
115115
drop(disk_file);
@@ -170,8 +170,8 @@ pub(crate) fn run_alongside(image: &str, mut testargs: libtest_mimic::Arguments)
170170
cmd!(sh, "sudo vgcreate BL {loop_part4}").run()?;
171171

172172
// Create logical volumes
173-
cmd!(sh, "sudo lvcreate -L 4G -n var02 BL").run()?;
174-
cmd!(sh, "sudo lvcreate -L 5G -n root02 BL").run()?;
173+
cmd!(sh, "sudo lvcreate -L 100M -n var02 BL").run()?;
174+
cmd!(sh, "sudo lvcreate -L 100M -n root02 BL").run()?;
175175

176176
// Create filesystems on logical volumes
177177
cmd!(sh, "sudo mkfs.ext4 -F /dev/BL/var02").run()?;

0 commit comments

Comments
 (0)