From 60cf46cae20785c7a343b2547d071475b0db1d38 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Thu, 7 Dec 2023 11:09:19 -0500 Subject: [PATCH] Cleanup whitespace problems found by precheck Signed-off-by: Stephen Smoogen --- README.md | 10 +++++----- initoverlayfs.spec | 2 +- scripts/build.sh | 3 +-- scripts/test.sh | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cb597b1..169ae51 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ A scalable solution for initial filesystems focused on minimal resource usage, s - [Why use initoverlayfs?](#why-use-initoverlayfs) - [Dependancies](#dependancies) - [Installation](#installation) - * [Step 1 - Deploy the software](#step-1---deploy-the-software) - * [Step 2 - Run initoverlayfs-install](#step-2---run-initoverlayfs-install) - * [Step 3 - Reboot to test](#step-3---reboot-to-test) - * [Step 4 - Validating the boot](#step-4---validating-the-boot) + * [Step 1 - Deploy the software](#step-1---deploy-the-software) + * [Step 2 - Run initoverlayfs-install](#step-2---run-initoverlayfs-install) + * [Step 3 - Reboot to test](#step-3---reboot-to-test) + * [Step 4 - Validating the boot](#step-4---validating-the-boot) # What is initoverlayfs? @@ -60,7 +60,7 @@ For illustration, consider a comparison of the sizes using dracut versus initove ``` bash # /usr/bin/initoverlayfs-install # du -sh /boot/initramfs-6.5.5-300.fc39.x86_64.img -13M /boot/initramfs-6.5.5-300.fc39.x86_64.img +13M /boot/initramfs-6.5.5-300.fc39.x86_64.img ^^ <--- from 36M to 13M ``` diff --git a/initoverlayfs.spec b/initoverlayfs.spec index 782791f..980f28c 100644 --- a/initoverlayfs.spec +++ b/initoverlayfs.spec @@ -33,7 +33,7 @@ install -D -m755 lib/dracut/modules.d/81initoverlayfs/module-setup.sh $RPM_BUILD %files %license LICENSE %doc README.md -%attr(0755,root,root) +%attr(0755,root,root) %{_bindir}/initoverlayfs-install %{_prefix}/sbin/storage-init %{_prefix}/lib/dracut/modules.d/81initoverlayfs/ diff --git a/scripts/build.sh b/scripts/build.sh index 4e2a713..bf0cf5b 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -61,7 +61,7 @@ extract_initrd_into_initoverlayfs() { fi } -cd +cd #epoch=$(date +%s) # systemd-analyze > systemd-analyze$epoch.txt #journalctl --output=short-monotonic > journalctl$epoch.txt @@ -146,4 +146,3 @@ sudo systemctl daemon-reload #sudo sed -i "s#options #options initoverlayfs=$boot_partition initoverlayfstype=ext4 rdinit=/usr/sbin/storage-init #g" /boot/loader/entries/$bls_file sudo sed -i "s/ quiet/ console=ttyS0/g" /boot/loader/entries/$bls_file sudo cat /boot/loader/entries/$bls_file - diff --git a/scripts/test.sh b/scripts/test.sh index 185734d..d47bcd2 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,7 +1,7 @@ #!/bin/bash # disable shellcheck for "Double quote to prevent globbing" until tested fix # shellcheck disable=SC2086 -# +# set -ex