From 8bb6e5ed345a3778c367365e416d629b4f29cca6 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 5 Feb 2020 12:18:55 +0100 Subject: add alpine bootstrap --- make-alpine-base-chroot | 1 + make-mewix-alpine-bootstrap | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 make-alpine-base-chroot create mode 100755 make-mewix-alpine-bootstrap 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 -- cgit 1.4.1