containers / initoverlayfs

GNU General Public License v2.0
35 stars 9 forks source link

initoverlayfs-install: generic improvements #10

Closed dougsland closed 8 months ago

dougsland commented 8 months ago

Fixes: https://github.com/containers/initoverlayfs/issues/11 Fixes: https://github.com/containers/initoverlayfs/issues/12

dougsland commented 8 months ago

Just spend some time on the weekend reading and testing the bin/initoverlayfs-install. This is a generic improvements, nothing fancy or rocket science. Hope it make sense and make the code easier for maintenance.

dougsland commented 8 months ago

The CI/CD still failing, need to address some others scripts this week.

dougsland commented 8 months ago

All good:

# ./bin/initoverlayfs-install
<snip>
dracut: *** Creating image file '/boot/initramfs-6.5.5-300.fc39.x86_64.img' ***
dracut: Using auto-determined compression method 'pigz'
dracut: *** Creating initramfs image file '/boot/initramfs-6.5.5-300.fc39.x86_64.img' done ***
initoverlayfs]# du -sh /boot/init*
149M    /boot/initoverlayfs-123.img
27M /boot/initoverlayfs-6.5.5-300.fc39.img
149M    /boot/initoverlayfs-6.5.5-300.fc39.x86_64.img
149M    /boot/initoverlayfs-6.5.5-300.img
28M /boot/initoverlayfs-foo.img
81M /boot/initramfs-0-rescue-285b2edb8ad94c7381215fd5720afd54.img
34M /boot/initramfs-6.4.12-200.fc38.x86_64.img
34M /boot/initramfs-6.5.5-200.fc38.x86_64.img
13M /boot/initramfs-6.5.5-300.fc39.x86_64.img
ericcurtin commented 8 months ago

Only gave a skip as I'm off, but looks cleaner

ericcurtin commented 8 months ago

shellcheck failed, but it's failing everywhere at present