@pcalvert: The refracta tools rely on live-boot and live-config, which are debian-based packages. You might need to cobble some stuff into place manually to get it to work. Look at the other dependencies to see if alpine uses the same package names. (Does alpine use apt?)
]]>And, I see: In Ubuntu 16 LTS for AMD64, there is no «live-config-upstart»
from apt-search live-config:
live-config/xenial,xenial 3.0.23-1+deb8u1 all
Live System Configuration Scriptslive-config-doc/xenial,xenial 3.0.23-1+deb8u1 all
Live System Configuration Scripts (documentation)live-config-sysvinit/xenial,xenial 3.0.23-1+deb8u1 all
Live System Configuration Scripts (sysvinit backend)
but it seems to be difficult to find a ".deb" for Ubuntu 2016 LTS AMD64.
And I will be prudent using other: I did have A LOT of successles experiment in the last times with live-config ending with errors no reparable.
]]>If it's a really old ubuntu, replace live-config-systemd with live-config-upstart.
]]>live-boot-initramfs-tools_20221008~fsr1_all.deb
refractainstaller-base_9.6.6_all.deb
refractasnapshot-base_10.2.12_all.debf@ubuntu:~$ sudo apt install ./*deb
[sudo] password for f:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'live-boot' instead of './live-boot_20221008~fsr1_all.deb'
Note, selecting 'live-boot-initramfs-tools' instead of './live-boot-initramfs-tools_20221008~fsr1_all.deb'
Note, selecting 'refractainstaller-base' instead of './refractainstaller-base_9.6.6_all.deb'
Note, selecting 'refractasnapshot-base' instead of './refractasnapshot-base_10.2.12_all.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
refractasnapshot-base : Depends: live-config (>= 2.0.15) but it is not installable
Recommends: live-config-sysvinit but it is not installable or
live-config-systemd but it is not installable or
live-config-upstart but it is not installable or
live-config-backend but it is not installable
E: Unable to correct problems, you have held broken packages.
I don't know why that 'zcat' is there when initrd is uncompressed.
Which kernel/OS are you running?
]]>Thanks for posting this.
]]>(cpio -i ; zcat | cpio -i) < "$initrd_image"
to this:
cpio -i < "$initrd_image"
succeeds.
I don't know why that 'zcat' is there when initrd is uncompressed.
]]>Long story short I could not get around the compression problem with Ubuntu....
So, with Ubuntu what we did was take the "Snapshot without" crypt-setup, and then later I used a tool called "Cubic" to update the ISO.
https://launchpad.net/cubic
And that was problem solved.
But....I am glad I came here, because the work you guys have done and the freedom you offer speaks volumes.
I think a lot of folks just don't understand just how much systemd touches so many things...
Who knows maybe I can convince my community, and team to be open to a Devuan base
I hear OpenRc may be the init to use though....is that true I am really ignorant on that subject..?
Again.... thank you!
]]>Note 1: I chose gzip because the command was easier to type than xz, and I did not attempt to figure out the correct lz4 command. I just wanted to make sure the microcode didn't get lost.
Note 2: Since it was a live session, there were only dead symlinks in /boot, so I used /cdrom/casper/initrd for the extraction.
]]>Here are my results,
**I have not tried the manual method @fsmithred mentioned yet.
I did change the compression in the initramfs.conf to gzip and updated the initramfs no issues there...
Ran Snapshot and it ...came back with the same Decompression error.
Now....for myself I know exactly where the problem area is in the snapshot script. That is here which is what you guys have already mentioned.
elif [ "$COMPRESSION" = "cpio archive" ]; then
echo "Archive is cpio archive..."
(cpio -i ; zcat | cpio -i) < "$initrd_image"
exit_code="$?"
if [ "$exit_code" -ne 0 ] ; then
(cpio -i ; xzcat | cpio -i) < "$initrd_image"
exit_code="$?"
if [ "$exit_code" -ne 0 ] ; then
echo "Decompression error" && exit 1
Before I try the manual method I wanted to ask the following:
Ubuntu talks about using unmkinitramfs to extract an initramfs image.... because they are using lz4
The manpage is here: https://manpages.debian.org/buster/init … .8.en.html
Starting with 20.04...... lz4 is the standard used by Ubuntu to compress an initramfs image.
My question is......is unmkinitramfs the correct tool that I should try to add to the snapshot script?
or.... am I going in the wrong direction
If that does not work then I will update the script to include lz4 compression.
I will update this post, with the results. and what I did when it is all said and done .;)
So, you can either change the compression to a supported type as I mentioned above, or you can manually unpack the initrd, remove crypttab, repack it and replace /home/work/iso/live/initrd.img with the modified copy, then re-run refractasnapshot and just select the option to re-run xorriso. You must have set save_work=yes in the config file for this to work.
If you keep the lz4 and do the manual re-pack, your users may run into the same problem if they try to make a snapshot on an encrypted system.
]]>Wait for fsmithred to confirm though, im just curious on this subject as i have something planned.
]]>