<?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>Mon, 24 Aug 2026 08:56:20 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>linux</category><category>alpine</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
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
changes you make to the Live ISO and restore them automatically when you boot
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
drive to <code>/media/alpine_usb</code> and when I got to the disk selection I selected no
disk, and <code>alpine_usb</code> as where to store the configs, and the default for
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
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
/media/sdb and then wouldn’t work with lbu when I wanted to commit or check the
status because it was already mounted. To fix this I just had to <code>umount /dev/sdb</code> 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
the cache files when you’re installing packages. I want this because it makes
reinstalling my packages on reboot a lot faster, they can just be loaded from
cache instead of from online repositories.</p> <p>Upon reboot I had to reinstall all the packages I had installed using <code>apk upgrade</code> but since the cache is there it just installs everything really
quickly.</p> <p>I uncommented and changed the number of backups in <code>/etc/lbu/lbu.conf</code> to 20 so
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
could be used as a system recovery disk with the tools that are needed.</p><!--]-->]]></content:encoded>
	</item>
	</channel>
</rss>