Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bart Ribbers
aports
Commits
424aa9d4
Commit
424aa9d4
authored
Aug 06, 2009
by
Natanael Copa
Browse files
main/alpine-conf: backport fix for setup-disk
needed for new apk behaviour
parent
dd2128cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
main/alpine-conf/0002-setup-disk-copy-apk-config-to-new-root.patch
0 → 100644
View file @
424aa9d4
From 2e3bdc6d581b3efc5446d3b765272f7125bc0cba Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 6 Aug 2009 12:08:06 +0000
Subject: [PATCH 2/2] setup-disk: copy apk config to new root
---
setup-disk.in | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/setup-disk.in b/setup-disk.in
index 6a90d3a..e1a2c6d 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -42,8 +42,12 @@
install_mounted_root() {
echon "Installing system on $rootdev: "
lbu package - | tar -C "$mnt" -zx
+ # apk reads config from target root so we need to copy the config
+ mkdir -p "$mnt"/etc/apk/keys/
+ cp /etc/apk/keys/* "$mnt"/etc/apk/keys/
+
apk add -q --progress --root "$mnt" $(cat "$mnt"/var/lib/apk/world) \
- linux-grsec acct mkinitfs
+ acct linux-grsec alpine-base >/dev/null || return 1
echo ""
# make things bootable
kernel=$(ls "$mnt"/lib/modules)
@@ -61,7 +65,6 @@
install_mounted_root() {
rootdisk="$rootdisk /dev/${i}"
done
fi
- chroot "$mnt" /sbin/mkinitfs -F "$features" $kernel
# create an extlinux.conf
sed '/append initrd/d' /media/*/syslinux.cfg > "$mnt"/boot/extlinux.conf
--
1.6.4
main/alpine-conf/APKBUILD
View file @
424aa9d4
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
alpine-conf
pkgver
=
2.0_beta3
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"Alpine configuration management scripts"
url
=
http://git.alpinelinux.org/cgit/
$pkgname
depends
=
"openrc"
source
=
"http://git.alpinelinux.org/cgit/
$pkgname
/snapshot/
$pkgname
-
$pkgver
.tar.bz2
0001-lbu-remove-packages.list-if-exist.patch
0002-setup-disk-copy-apk-config-to-new-root.patch
"
license
=
"GPL-2"
build
()
{
cd
"
$srcdir
/
$pkgname
-
$pkgver
"
patch
-p1
-i
../0001-lbu-remove-packages.list-if-exist.patch
||
return
1
patch
-p1
-i
../0002-setup-disk-copy-apk-config-to-new-root.patch
||
return
1
make
||
return
1
make
install
PREFIX
=
DESTDIR
=
"
$pkgdir
"
for
i
in
commit exclude include status update
;
do
...
...
@@ -21,4 +22,5 @@ build() {
done
}
md5sums
=
"7786d6d526e96a3fdf51b9284d063caa alpine-conf-2.0_beta3.tar.bz2
b09f9702fc6599fcb7d9bfbc855c8b5c 0001-lbu-remove-packages.list-if-exist.patch"
b09f9702fc6599fcb7d9bfbc855c8b5c 0001-lbu-remove-packages.list-if-exist.patch
6b32656c7d90567084753471fe9df972 0002-setup-disk-copy-apk-config-to-new-root.patch"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment