Bootstrapping Alpine Linux: Difference between revisions

From Alpine Linux
No edit summary
(bootstrap using apk-tools-static)
Line 7: Line 7:
   
   
=== Prepare ===
=== Prepare ===
<ol>
<li>Check which architecture you are using.</li>
<pre>arch=$(uname -m)</pre>
<li>Download apk-tools-static for your architecture.</li>
<pre>wget http://dl-cdn.alpinelinux.org/alpine/v3.12/main/${arch}/apk-tools-static-2.10.5-r1.apk</pre>
<li>Unpack .apk</li>
<pre>tar zxf apk-tools-static-*.apk</pre>
</ol>


=== Install ===
=== Install ===
<code>sudo apk --arch x86 -X http://nl.alpinelinux.org/alpine/v3.3/main/ -U --allow-untrusted --root /tmp/target --initdb add alpine-base</code>
<code>sudo ./sbin/apk.static --arch ${arch} -X http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/ -U --allow-untrusted --root /tmp/target --initdb add alpine-base</code>


=== Bootloader ===
=== Bootloader ===

Revision as of 10:45, 10 June 2020


VPS

This section is to provide a means to bootstrap Alpine Linux on any VPS.

Process

Prepare

  1. Check which architecture you are using.
  2. arch=$(uname -m)
  3. Download apk-tools-static for your architecture.
  4. wget http://dl-cdn.alpinelinux.org/alpine/v3.12/main/${arch}/apk-tools-static-2.10.5-r1.apk
  5. Unpack .apk
  6. tar zxf apk-tools-static-*.apk

Install

sudo ./sbin/apk.static --arch ${arch} -X http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/ -U --allow-untrusted --root /tmp/target --initdb add alpine-base

Bootloader

References