Skip to content

Commit

Permalink
Merge pull request #40 from smooge/v0.98
Browse files Browse the repository at this point in the history
Get system ready for v0.98 release
  • Loading branch information
ericcurtin authored Dec 7, 2023
2 parents 4d61a33 + 60cf46c commit 8c577cc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down Expand Up @@ -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
```

Expand Down
9 changes: 7 additions & 2 deletions initoverlayfs.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: initoverlayfs
Version: 0.97
Version: 0.98
Release: 1%{?dist}
Summary: An initial scalable filesystem for Linux operating systems

Expand Down Expand Up @@ -33,12 +33,17 @@ 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/

%changelog
* Thu Dec 7 2023 Stephen Smoogen <ssmoogen@redhat.com> - 0.98-1
- Release 0.98
- Improve documentation (PR31 and ecurtin)
- Only wait for bootfs storage device if it is configured (PR32)

* Fri Nov 17 2023 Eric Curtin <ecurtin@redhat.com> - 0.97-1
- Raspberry Pi 4 enablement.

Expand Down
12 changes: 9 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

# https://www.shellcheck.net/wiki/SC2016 -- Expressions don't expand in singl...
# this comes up due to us trying to output a shell script which needs to keep its variables. Safe to disable
# shellcheck disable=SC2016
# this needs a larger set of hand tests to fix.
# https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
# shellcheck disable=SC2086

set -e

failure() {
Expand Down Expand Up @@ -54,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
Expand All @@ -73,7 +80,7 @@ install() {
sed -i "s/initrd-udevadm-cleanup-db.service/initrd-udevadm-cleanup-db.service mount-sysroot.service/g" /usr/lib/systemd/system/initrd-switch-root.target
chcon system_u:object_r:systemd_unit_file_t:s0 /usr/lib/systemd/system/mount-sysroot.service
cd /usr/lib/systemd/system/sysinit.target.wants/
ln -s ../mount-sysroot.service
ln -s ../mount-sysroot.service .
cd -
systemctl daemon-reload
du -sh /boot/initramfs*
Expand Down Expand Up @@ -139,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

3 changes: 3 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# disable shellcheck for "Double quote to prevent globbing" until tested fix
# shellcheck disable=SC2086
#

set -ex

Expand Down

0 comments on commit 8c577cc

Please sign in to comment.