Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
aports
Commits
63772feb
Commit
63772feb
authored
May 17, 2012
by
Natanael Copa
Committed by
Francesco Colista
May 25, 2012
Browse files
main/mkinitfs: fix apk world when upgrading
ref
#1171
parent
6c37e56e
Changes
2
Hide whitespace changes
Inline
Side-by-side
main/mkinitfs/0001-Revert-init-only-use-etc-apk-world-when-it-exists.patch
0 → 100644
View file @
63772feb
From 4c8535b759fb9f2b34d05f971bee3a4ecc86b734 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 17 May 2012 14:33:18 +0000
Subject: [PATCH] Revert "init: only use /etc/apk/world when it exists"
We can not only use /etc/apk/world since it will always
be there due to previous apk add --initdb.
Instead, clean up the /var/lib/apk/world after upgrade
This reverts commit 8981ccbf5b2636c7d2e06b08ffdf87be80fe19c8.
Conflicts:
initramfs-init.in
---
initramfs-init.in | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/initramfs-init.in b/initramfs-init.in
index b14ebf9..6e1ebc1 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -481,13 +481,11 @@
if [ -f "$ovl" ]; then
# hack, incase /root/.ssh was included in apkovl
[ -d "$sysroot/root" ] && chmod 700 "$sysroot/root"
pkgs="$pkgs $(sed 's/\#.*//' $sysroot/etc/lbu/packages.list 2>/dev/null)"
- rm -f "$sysroot"/etc/lbu/packages.list
- for world in etc/apk/world var/lib/apk/world; do
- if [ -e "$sysroot/$world" ]; then
- pkgs="$pkgs $(cat $sysroot/$world)"
- break;
- fi
- done
+ pkgs="$pkgs $(cat $sysroot/var/lib/apk/world \
+ $sysroot/etc/apk/world 2>/dev/null)"
+ # clean up after upgrade
+ rm -f $sysroot/etc/lbu/packages.list \
+ $sysroot/var/lib/apk/world
# fix up inittab from pre openrc times (alpine v1.8)
if [ -f "$sysroot"/etc/inittab ]; then
--
1.7.10.2
main/mkinitfs/APKBUILD
View file @
63772feb
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
mkinitfs
pkgver
=
2.4.3
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"Tool to generate initramfs images for Alpine"
url
=
http://git.alpinelinux.org/cgit/mkinitfs
depends
=
"busybox apk-tools>=2.0"
...
...
@@ -9,6 +9,7 @@ triggers="$pkgname.trigger=/usr/share/kernel/*"
source
=
"http://git.alpinelinux.org/cgit/
$pkgname
/snapshot/
$pkgname
-
$pkgver
.tar.bz2
0001-init-fix-inittab-for-users-who-upgrades-from-pre-ope.patch
0001-init-search-boot-repositories-after-relocation.patch
0001-Revert-init-only-use-etc-apk-world-when-it-exists.patch
eglibc.patch
"
arch
=
"noarch"
...
...
@@ -47,4 +48,5 @@ package() {
md5sums
=
"7373acb2159e24ba120ee46b0deb6bc4 mkinitfs-2.4.3.tar.bz2
ba969f3b8d8a0dd74319492eb41a712b 0001-init-fix-inittab-for-users-who-upgrades-from-pre-ope.patch
bd9fd3813c9c28b42a1eeb30f65718e5 0001-init-search-boot-repositories-after-relocation.patch
7aea167ef747a6f0d92081628358083a 0001-Revert-init-only-use-etc-apk-world-when-it-exists.patch
e59c2f7de496fe430b07e32fd812ebe0 eglibc.patch"
Natanael Copa
@ncopa
mentioned in issue
#1171 (closed)
·
Jul 12, 2019
mentioned in issue
#1171 (closed)
mentioned in issue #1171
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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