diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-02-05 12:18:55 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-02-05 12:18:55 +0100 |
commit | 8bb6e5ed345a3778c367365e416d629b4f29cca6 (patch) | |
tree | 3b58b8e45f6eef49f946271890dc772b034d0dcd | |
parent | 0716888051261d4e4af22446af29612f0dbb2380 (diff) | |
download | mewix-8bb6e5ed345a3778c367365e416d629b4f29cca6.tar.gz mewix-8bb6e5ed345a3778c367365e416d629b4f29cca6.tar.xz mewix-8bb6e5ed345a3778c367365e416d629b4f29cca6.zip |
add alpine bootstrap
-rwxr-xr-x | make-alpine-base-chroot | 1 | ||||
-rwxr-xr-x | make-mewix-alpine-bootstrap | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/make-alpine-base-chroot b/make-alpine-base-chroot new file mode 100755 index 0000000..89df6a8 --- /dev/null +++ b/make-alpine-base-chroot @@ -0,0 +1 @@ +fakeroot apk -X http://dl-cdn.alpinelinux.org/alpine/v3.10/main -U --allow-untrusted --root alpine-base-chroot --initdb add alpine-base build-base diff --git a/make-mewix-alpine-bootstrap b/make-mewix-alpine-bootstrap new file mode 100755 index 0000000..5b0de3c --- /dev/null +++ b/make-mewix-alpine-bootstrap @@ -0,0 +1,16 @@ +#!/bin/sh + +mkdir -p newroot/pkg/zzz-alpine-base-chroot/0/ +cp -a alpine-base-chroot/usr newroot/pkg/zzz-alpine-base-chroot/0/ +cp -a alpine-base-chroot/bin newroot/pkg/zzz-alpine-base-chroot/0/usr +cp -a alpine-base-chroot/lib newroot/pkg/zzz-alpine-base-chroot/0/usr +ln -s usr/lib newroot/pkg/zzz-alpine-base-chroot/0/lib +ln -s usr/bin newroot/pkg/zzz-alpine-base-chroot/0/bin + +# XXX hack +cp -a alpine-base-chroot/etc/ssl newroot/etc + +./relink-newroot +./enter-newroot /pkg/zzz-alpine-base-chroot/0/usr/bin/busybox \ + --install -s /pkg/zzz-alpine-base-chroot/0/usr/bin/ +./relink-newroot |