<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JasonStewart777</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JasonStewart777"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/JasonStewart777"/>
	<updated>2026-05-01T21:06:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Manually_editing_a_existing_apkovl&amp;diff=22970</id>
		<title>Manually editing a existing apkovl</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Manually_editing_a_existing_apkovl&amp;diff=22970"/>
		<updated>2023-02-10T21:14:47Z</updated>

		<summary type="html">&lt;p&gt;JasonStewart777: file ownership notes in case of non-root tar extraction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
You might end up in a situation when you find it necessary to edit an apkovl (without having to boot a box using the apkovl itself).&lt;br /&gt;
&lt;br /&gt;
== Unpack the apkovl ==&lt;br /&gt;
Unpack the apkovl into a temp dir (&#039;&#039;preferably run tar as root to preserve target&#039;s UIDs &amp;amp; GIDs&#039;&#039;):&lt;br /&gt;
{{Cmd|mkdir /tmp/testbox&lt;br /&gt;
 tar -xvzf testbox.apkovl.tar.gz -C /tmp/testbox/}}&lt;br /&gt;
&lt;br /&gt;
== Make your modifications ==&lt;br /&gt;
Do your modifications in &#039;/tmp/testbox/&#039;&amp;lt;BR&amp;gt;&lt;br /&gt;
* Edit files/folders&lt;br /&gt;
* Add files/folders&lt;br /&gt;
* Remove files/folders&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
== Ensure proper ownership ==&lt;br /&gt;
By default, tar will preserve file permissions and ownership when creating an archive.  However, on extraction, if you did not extract the archive as root, file ownership may have been substituted with the current user (since changing file ownership usually requires superuser privileges).  If you didn&#039;t extract the apkovl as root, take a moment to correct ownership (by target&#039;s UIDs &amp;amp; GIDs rather than local user &amp;amp; group names)—especially for important directories like &#039;&#039;/etc&#039;&#039; and &#039;&#039;/root&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Pack the apkovl ==&lt;br /&gt;
When your modifications are done, you should pack your apkovl&lt;br /&gt;
{{Cmd|cd /tmp/testbox&lt;br /&gt;
 tar -czf /tmp/testbox.apkovl.tar.gz *}}&lt;br /&gt;
&lt;br /&gt;
== Replace the original apkovl ==&lt;br /&gt;
You now have a new/modified apkovl.&amp;lt;BR&amp;gt;&lt;br /&gt;
Replace your original apkovl (on your media) with &#039;/tmp/testbox.apkovl.tar.gz&#039; and boot.&lt;br /&gt;
&lt;br /&gt;
[[Category:LBU]]&lt;/div&gt;</summary>
		<author><name>JasonStewart777</name></author>
	</entry>
</feed>