<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<atom:link href="https://seanbehan.ca/posts/tag/alpine/rss.xml" rel="self" type="application/rss+xml" />
		<title>Sean Behan — Alpine</title>
		<link>https://seanbehan.ca/posts/tag/alpine</link>
		<description>Posts tagged “Alpine”.</description>
		<language>en-CA</language>
		<!-- RSS wants an address here and readers show the name beside it. -->
		<managingEditor>sean@seanbehan.ca (Sean Behan)</managingEditor>
		<webMaster>sean@seanbehan.ca (Sean Behan)</webMaster>
		<lastBuildDate>Sun, 30 Aug 2026 05:33:05 GMT</lastBuildDate>
		<item>
		<guid isPermaLink="true">https://seanbehan.ca/posts/alpine-lbu</guid>
		<title><![CDATA[Alpine Linux LBU]]></title>
		<description><![CDATA[Alpine can commit changes back onto its own live ISO. Using LBU to build a persistent maintenance drive.]]></description>
		<link>https://seanbehan.ca/posts/alpine-lbu</link>
		<pubDate>Fri, 04 Dec 2020 03:09:46 GMT</pubDate>
		<category>alpine</category><category>linux</category>
		<content:encoded><![CDATA[<h3>What is LBU?</h3><p>Alpine Linux has a cool feature called LBU that lets you create a backup on top</p><p>of the Live ISO. These backups are called local backups.</p><p>I plan on using LBU as a system maintenance drive. It allows you to save</p><p>changes you make to the Live ISO and restore them automatically when you boot</p><p>the next time.</p><h3>Setup and Committing</h3><p>To set up LBU I booted the Alpine Linux ISO, ran <code>setup-alpine</code>, mounted my</p><p>drive to <code>/media/alpine_usb</code> and when I got to the disk selection I selected no</p><p>disk, and <code>alpine_usb</code> as where to store the configs, and the default for</p><p>cache.</p><p>Now when I make changes in the Alpine Linux Live ISO I can commit them.</p><p>To see what is being committed I first check <code>lbu status</code> which lists all the</p><p>files being added or removed, then <code>lbu commit</code> to commit the changes.</p><p>When I was rebooting I had an issue where the drive would automount itself to</p><p>/media/sdb and then wouldn&#x27;t work with lbu when I wanted to commit or check the</p><p>status because it was already mounted. To fix this I just had to `umount</p><p>/dev/sdb` on boot and then lbu worked as expected.</p><h3>Caching and Configuration</h3><p>To use cache you have to mount it to <code>/media/alpine_usb</code> so that it can write</p><p>the cache files when you&#x27;re installing packages. I want this because it makes</p><p>reinstalling my packages on reboot a lot faster, they can just be loaded from</p><p>cache instead of from online repositories.</p><p>Upon reboot I had to reinstall all the packages I had installed using `apk</p><p>upgrade` but since the cache is there it just installs everything really</p><p>quickly.</p><p>I uncommented and changed the number of backups in <code>/etc/lbu/lbu.conf</code> to 20 so</p><p>that I would be able to revert up to 20 commits in case I broke my configs.</p><p>I see Alpine LBU as a good way to keep a backup of changes to the ISO so it</p><p>could be used as a system recovery disk with the tools that are needed.</p>]]></content:encoded>
	</item>
	</channel>
</rss>