<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3764&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Refracta-SnapShot - Question]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3764</link>
		<description><![CDATA[The most recent posts in Refracta-SnapShot - Question.]]></description>
		<lastBuildDate>Sun, 13 Oct 2024 10:13:29 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52637#p52637</link>
			<description><![CDATA[<p>The issue &quot;Compression error for type [cpio archive]&quot; is solved in Refracta Snapshot 10.4.1.</p><p><a href="https://pkgmaster.devuan.org/devuan/pool/main/r/refractasnapshot-base/" rel="nofollow">Download Refracta Snapshot BASE</a><br /><a href="https://pkgmaster.devuan.org/devuan/pool/main/r/refractasnapshot-gui/" rel="nofollow">Download Refracta Snapshot GUI</a></p><p>Tested okey dokey on:</p><p> - Debian 12.7.0 Gnome amd64<br /> - Ubuntu 24.04.1 LTS amd64<br /> - Linux Mint Cinnamon 22 amd64</p>]]></description>
			<author><![CDATA[dummy@example.com (odie2)]]></author>
			<pubDate>Sun, 13 Oct 2024 10:13:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52637#p52637</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=50553#p50553</link>
			<description><![CDATA[<p>pcalvert,</p><p>Were you able to do anything regarding alpine linux?&#160; I looked at the packages involved and it is the &quot;live-boot and live-config&quot; packages that are missing and I don&#039;t know what could be used to replace their function - if this is possible.</p><p>The refracta-tools scripts have spoiled me.</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Sat, 15 Jun 2024 16:36:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=50553#p50553</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=49602#p49602</link>
			<description><![CDATA[<p>Dear fsmithred, The new [/bin/refractasnapshot-gui] version 10.4.0 does not solve my problem.</p><p>Problem:<br />&quot;Compression error for type [cpio archive]&quot; when extracting initrd.img-6.5.0-26-generic. </p><p>Investigation:<br />1. [xed /var/log/refractasnapshot.log]:</p><p><em>Replace &quot;xed&quot; with your favorite editor.</em></p><div class="codebox"><pre><code>++ file -L /boot/initrd.img-6.5.0-26-generic
++ egrep -o &#039;Zstandard compressed|gzip compressed|XZ compressed|cpio archive&#039;
+ initrd_compression=&#039;cpio archive&#039;
+ &#039;[&#039; &#039;!&#039; &#039;cpio archive&#039; &#039;]&#039;
+ popd
+ &#039;[&#039; &#039;cpio archive&#039; == &#039;Zstandard compressed&#039; &#039;]&#039;
+ &#039;[&#039; &#039;cpio archive&#039; == &#039;gzip compressed&#039; &#039;]&#039;
+ &#039;[&#039; &#039;cpio archive&#039; == &#039;XZ compressed&#039; &#039;]&#039;
+ popd
+ echo &#039;Initrd is extracted&#039;
+ edit_initrd
+ pushd /tmp/extracted
+ &#039;[&#039; -f conf/conf.d/cryptroot &#039;]&#039;
+ &#039;[&#039; -f cryptroot/crypttab &#039;]&#039;
+ &#039;[&#039; -f conf/conf.d/resume &#039;]&#039;
+ &#039;[&#039; -f conf/conf.d/zz-resume-auto &#039;]&#039;
+ popd
+ rebuild_initrd
+ pushd /tmp/extracted
+ &#039;[&#039; &#039;cpio archive&#039; == &#039;gzip compressed&#039; &#039;]&#039;
+ &#039;[&#039; &#039;cpio archive&#039; == &#039;XZ compressed&#039; &#039;]&#039;
+ &#039;[&#039; &#039;cpio archive&#039; == &#039;Zstandard compressed&#039; &#039;]&#039;
+ echo &#039;Compression error for type [cpio archive]...&#039;
+ exit 1</code></pre></div><p>2. The command [file -L /boot/initrd.img-6.5.0-26-generic] returns &quot;ASCII cpio archive (SVR4 with no CRC)&quot;. This information is flaw.</p><p>Cause:<br />Linux Mint 21.3 uses an initrd.img file of type &quot;initramfs&quot; as of kernel version 5.15.0-94, and cannot be extracted/rebuilded using the cpio command. </p><p>Solution:<br />Use unmkinitramfs to extract- and mkinitramfs to rebuild the initrd file.</p><p>(tested on kernel: vmlinuz-6.5.0-26-generic, initrd: initrd.img-6.5.0-26-generic, distro: Linux Mint 21.3, desktop: Cinnamon 6.0.4, base: Ubuntu 22.04)</p><p>&gt; [sudo xed /bin/refractasnapshot-gui]<br />&gt; search for: &quot;extract_initrd ()&quot;</p><p>&gt; replace: <br />from: extract_initrd () {<br />to:&#160; &#160; }<br />with:</p><div class="codebox"><pre><code>extract_initrd () {
# Customized {FillInCurrentDateTime} by {FillInYourName} 

    rm -rf /tmp/extracted
    mkdir /tmp/extracted
    pushd /tmp/extracted	
    
    unmkinitramfs &quot;$initrd_image&quot; &quot;/tmp/extracted&quot;
    
    if [ $? -eq 0 ]; then 
        echo &quot;SUCCESS: unmkinitramfs has successfully extracted the original Initrd to /tmp/extracted&quot; 
    else 
        echo &quot;ERROR: unmkinitramfs has failed to extract the original Initrd&quot;
        echo &quot;Script execution terminated&quot;
        rm -rf /tmp/extracted
        exit 1 
    fi
    popd
}</code></pre></div><p>&gt; search for: &quot;rebuild_initrd ()&quot;</p><p>&gt; replace: <br />from: rebuild_initrd () {<br />to:&#160; &#160; }<br />with:</p><div class="codebox"><pre><code>rebuild_initrd () {
# Customized {FillInCurrentDateTime} by {FillInYourName}

    pushd /tmp/extracted
    mkinitramfs -c gzip -o ${work_dir}/iso/live/${initrd_image##*/}

    if [ $? -eq 0 ]; then 
        echo &quot;SUCCESS: mkinitramfs has successfully rebuilded the custom Initrd&quot; 
    else 
        echo &quot;ERROR: mkinitramfs has failed to rebuild the custom Initrd&quot;
        echo &quot;Script execution terminated&quot;
        rm -rf /tmp/extracted
        exit 1 
    fi
    popd
    rm -rf /tmp/extracted
}</code></pre></div><p>Notice that the container is compressed using the gzip algorithm. I guess this solution can also help Ubuntu users.</p><p>Nonetheless, still very happy using Refracta Snapshot!</p>]]></description>
			<author><![CDATA[dummy@example.com (odie2)]]></author>
			<pubDate>Mon, 22 Apr 2024 12:19:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=49602#p49602</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=49058#p49058</link>
			<description><![CDATA[<p>The issue with handling initramfs with microcode is fixed in refractasnapshot 10.4.0 in excalibur/ceres. You can download it here if you want to install it in daedalus or chimaera:i<br /><a href="https://pkgmaster.devuan.org/devuan/pool/main/r/refractasnapshot-base/" rel="nofollow">https://pkgmaster.devuan.org/devuan/poo … shot-base/</a><br /><a href="https://pkgmaster.devuan.org/devuan/pool/main/r/refractasnapshot-gui/" rel="nofollow">https://pkgmaster.devuan.org/devuan/poo … pshot-gui/</a></p><p>@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?)</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 21 Mar 2024 10:36:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=49058#p49058</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48273#p48273</link>
			<description><![CDATA[<p>How flexible are the Refracta tools? If I were to successfully install them (and their dependencies) on a non-Debian distro, like Alpine Linux, is there a reasonable chance that they would work?</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Sun, 18 Feb 2024 06:43:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48273#p48273</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48114#p48114</link>
			<description><![CDATA[<p>Thank you very much fsmithred.<br />As I actually have no success with Devuan / derivatives of , I test again old Ubuntu&#039;s. Why? I have a second reason, not my problems, but those of my wife! She use the old laptop of our step daughter, an old Apple Macbook (our son and his wife are doctors of medicine and those people often prefer Apple...), the last one she did have as a student (about 10 y. ago), and we have problems here. And not Devuan, not Devuan are known to be really installable on Macbook but Ubuntu 2016LTS (at that time did our son bring the Macbook with 3 CD&#039;s: one package from Apple, the initial system. one from Ubuntu 16 LTS and one from Suse).</p><p>And, I see: In Ubuntu 16 LTS for AMD64, there is no «live-config-upstart» </p><p>from apt-search live-config:</p><div class="quotebox"><blockquote><div><p>live-config/xenial,xenial 3.0.23-1+deb8u1 all<br />&#160; Live System Configuration Scripts</p><p>live-config-doc/xenial,xenial 3.0.23-1+deb8u1 all<br />&#160; Live System Configuration Scripts (documentation)</p><p>live-config-sysvinit/xenial,xenial 3.0.23-1+deb8u1 all<br />&#160; Live System Configuration Scripts (sysvinit backend)</p></div></blockquote></div><p>but it seems to be difficult to find a &quot;.deb&quot; for Ubuntu 2016 LTS AMD64.</p><p>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.</p>]]></description>
			<author><![CDATA[dummy@example.com (oui)]]></author>
			<pubDate>Tue, 13 Feb 2024 21:09:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48114#p48114</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47917#p47917</link>
			<description><![CDATA[<p>oui,<br />live-config live-config-systemd live-boot and live-boot-initramfstools should all be installable in ubuntu. Try installing those first.</p><p>If it&#039;s a really old ubuntu, replace live-config-systemd with live-config-upstart.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 07 Feb 2024 12:50:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47917#p47917</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47916#p47916</link>
			<description><![CDATA[<p>installed through import of the 6 packages from sourceforge in an old Ubuntu, the ubuntu apt version miss a file live-config and declares that the installation is now wrong. The live-config system man page explains that is so, as the installed system is not a live system. how to repare the system (the 2 refracta package from sourceforge were installed, but ubuntu&#039;s apt can&#039;t remove / puge them.</p><div class="quotebox"><blockquote><div><p>live-boot-initramfs-tools_20221008~fsr1_all.deb<br />refractainstaller-base_9.6.6_all.deb<br />refractasnapshot-base_10.2.12_all.deb</p><p>f@ubuntu:~$ sudo apt install ./*deb<br />[sudo] password for f: <br />Reading package lists... Done<br />Building dependency tree&#160; &#160; &#160; &#160;<br />Reading state information... Done<br />Note, selecting &#039;live-boot&#039; instead of &#039;./live-boot_20221008~fsr1_all.deb&#039;<br />Note, selecting &#039;live-boot-initramfs-tools&#039; instead of &#039;./live-boot-initramfs-tools_20221008~fsr1_all.deb&#039;<br />Note, selecting &#039;refractainstaller-base&#039; instead of &#039;./refractainstaller-base_9.6.6_all.deb&#039;<br />Note, selecting &#039;refractasnapshot-base&#039; instead of &#039;./refractasnapshot-base_10.2.12_all.deb&#039;<br />Some packages could not be installed. This may mean that you have<br />requested an impossible situation or if you are using the unstable<br />distribution that some required packages have not yet been created<br />or been moved out of Incoming.<br />The following information may help to resolve the situation:</p><p>The following packages have unmet dependencies:<br /> refractasnapshot-base : Depends: live-config (&gt;= 2.0.15) but it is not installable<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Recommends: live-config-sysvinit but it is not installable or<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;live-config-systemd but it is not installable or<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;live-config-upstart but it is not installable or<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;live-config-backend but it is not installable<br />E: Unable to correct problems, you have held broken packages.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (oui)]]></author>
			<pubDate>Wed, 07 Feb 2024 09:13:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47916#p47916</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46500#p46500</link>
			<description><![CDATA[<div class="quotebox"><cite>samhain wrote:</cite><blockquote><div><p>I don&#039;t know why that &#039;zcat&#039; is there when initrd is uncompressed.</p></div></blockquote></div><p>Which kernel/OS are you running?</p><p><a href="https://linuxconfig.org/how-to-uncompress-and-list-an-initramfs-content-on-linux" rel="nofollow">https://linuxconfig.org/how-to-uncompre … t-on-linux</a></p>]]></description>
			<author><![CDATA[dummy@example.com (siva)]]></author>
			<pubDate>Sun, 24 Dec 2023 19:11:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46500#p46500</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46271#p46271</link>
			<description><![CDATA[<p>The extra zcat was needed at the time it was added because the microcode put an extra layer on the initrd.img. I guess that got fixed and snapshot needs to be changed again. That section of code also needs to support the new compression, zstd. </p><p>Thanks for posting this.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 16 Dec 2023 10:42:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46271#p46271</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46256#p46256</link>
			<description><![CDATA[<p>I just ran into the very same problem. Changing line 333 in refractasnapshot from:</p><div class="codebox"><pre><code>(cpio -i ; zcat | cpio -i) &lt; &quot;$initrd_image&quot;</code></pre></div><p>to this:</p><div class="codebox"><pre><code>cpio -i &lt; &quot;$initrd_image&quot;</code></pre></div><p>succeeds.</p><p>I don&#039;t know why that &#039;zcat&#039; is there when initrd is uncompressed.</p>]]></description>
			<author><![CDATA[dummy@example.com (samhain)]]></author>
			<pubDate>Fri, 15 Dec 2023 20:51:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46256#p46256</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24725#p24725</link>
			<description><![CDATA[<p>Hello guys --- I wanted to update this post just to have closure...<br />Again thank you so much for advice and support....</p><p>Long story short I could not get around the compression problem with Ubuntu....<br />So, with Ubuntu what we did was take the &quot;Snapshot without&quot; crypt-setup, and then later&#160; I used&#160; a tool called &quot;Cubic&quot; to update the ISO.<br /><a href="https://launchpad.net/cubic" rel="nofollow">https://launchpad.net/cubic</a><br />And that was problem solved. </p><p>But....I am glad I came here, because the work you guys have done and the&#160; freedom you offer speaks volumes.&#160; <br />I think a lot of folks just don&#039;t understand just how much systemd touches so many things...&#160; </p><p>Who knows maybe I can convince my community, and team to be open to a Devuan base <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" />&#160; <br />I hear OpenRc may be the init to use though....is that true I am really ignorant on that subject..?</p><p>Again.... thank you!</p>]]></description>
			<author><![CDATA[dummy@example.com (grafiksinc)]]></author>
			<pubDate>Fri, 18 Sep 2020 12:03:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24725#p24725</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24260#p24260</link>
			<description><![CDATA[<p>I got an ubuntu iso (20.04.1-desktop)<br />Booted it in qemu and used unmkinitramfs to unpack it into an empty directory.<br />Re-packed it as gzip with <span class="bbc">find . -print0 | cpio -0 -H newc -o | gzip -c &gt; ../initrd.img-custom</span><br />I then unpacked the custom initrd to verify that the amd64 microcode was still there. It was.</p><p>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&#039;t get lost.</p><p>Note 2: Since it was a live session, there were only dead symlinks in /boot, so I used /cdrom/casper/initrd for the extraction.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 22 Aug 2020 14:42:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24260#p24260</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24259#p24259</link>
			<description><![CDATA[<p>You can try using mkinitramfs. I&#039;ve never used it, but it looks like it would be easier than figuring out the right decompression commands. But I&#039;d really like to know why it doesn&#039;t work with your rebuilt initrd. Did you verify that it&#039;s really in gzip format by running &#039;file&#039; on it?</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 22 Aug 2020 14:07:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24259#p24259</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta-SnapShot - Question]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24258#p24258</link>
			<description><![CDATA[<p>@<strong>HevyDevy</strong> and @<strong>fsmithred</strong></p><p>Here are my results, <br />**I have not tried the manual method @<strong>fsmithred</strong> mentioned yet. </p><p>I did change the compression in the <strong>initramfs</strong>.conf to gzip and updated the <strong>initramfs</strong> no issues there...<br />Ran Snapshot and it ...came back with the same <strong>Decompression error</strong>.</p><p>Now....for myself I know exactly where the&#160; problem area is in the snapshot script. That is here which is what you guys have already mentioned. </p><div class="codebox"><pre><code>	elif [ &quot;$COMPRESSION&quot; = &quot;cpio archive&quot; ]; then
		echo &quot;Archive is cpio archive...&quot;
		(cpio -i ; zcat | cpio -i) &lt; &quot;$initrd_image&quot;
		exit_code=&quot;$?&quot;
		if [ &quot;$exit_code&quot; -ne 0 ] ; then
			(cpio -i ; xzcat | cpio -i) &lt; &quot;$initrd_image&quot;
			exit_code=&quot;$?&quot;
			if [ &quot;$exit_code&quot; -ne 0 ] ; then
				echo &quot;Decompression error&quot; &amp;&amp; exit 1</code></pre></div><p>Before I try the&#160; manual method I wanted to ask the following:<br />Ubuntu talks about using <strong>unmkinitramfs</strong> to extract an&#160; initramfs image.... because they are using <strong>lz4</strong><br />The manpage is here: <a href="https://manpages.debian.org/buster/initramfs-tools-core/unmkinitramfs.8.en.html" rel="nofollow">https://manpages.debian.org/buster/init … .8.en.html</a><br />Starting with 20.04...... <strong>lz4</strong> is the standard used by Ubuntu to compress an initramfs image. </p><p>My question is......is unmkinitramfs the correct tool that I should try to add to the snapshot script?<br />or.... am I going in the wrong direction</p>]]></description>
			<author><![CDATA[dummy@example.com (grafiksinc)]]></author>
			<pubDate>Sat, 22 Aug 2020 12:16:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24258#p24258</guid>
		</item>
	</channel>
</rss>
