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
Leo
aports
Commits
5641ee0f
Commit
5641ee0f
authored
Nov 24, 2009
by
Natanael Copa
Browse files
main/mkinitfs: use --never-overwrite apk option
fixes #197
parent
5e5a5605
Changes
2
Hide whitespace changes
Inline
Side-by-side
main/mkinitfs/0001-init-never-overwrite-existing-files.patch
0 → 100644
View file @
5641ee0f
From bf94c9b9aa7884fc50d3110d69e2d28e413159ed Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 24 Nov 2009 12:23:38 +0000
Subject: [PATCH] init: never overwrite existing files
ref #197
---
initramfs-init.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/initramfs-init.in b/initramfs-init.in
index 04798de..bd97ace 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -372,7 +372,7 @@
if [ -n "$KOPT_chart" ]; then
fi
apkflags="--initdb --quiet --progress --force --no-network"
if [ -z "$KOPT_keep_apk_new" ]; then
- apkflags="$apkflags --clean-protected"
+ apkflags="$apkflags --clean-protected --never-overwrite"
fi
apk add --root $sysroot $repo_opt $apkflags $pkgs >/dev/null
eend $?
--
1.6.5.3
main/mkinitfs/APKBUILD
View file @
5641ee0f
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
mkinitfs
pkgname
=
mkinitfs
pkgver
=
2.0_rc6
pkgver
=
2.0_rc6
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Tool to generate initramfs images for Alpine"
pkgdesc
=
"Tool to generate initramfs images for Alpine"
url
=
http://git.alpinelinux.org/cgit/mkinitfs
url
=
http://git.alpinelinux.org/cgit/mkinitfs
depends
=
"busybox"
depends
=
"busybox
apk-tools>=2.0_rc7
"
triggers
=
"
$pkgname
.trigger:/usr/share/kernel/*"
triggers
=
"
$pkgname
.trigger:/usr/share/kernel/*"
source
=
"http://git.alpinelinux.org/cgit/
$pkgname
/snapshot/
$pkgname
-
$pkgver
.tar.bz2
source
=
"http://git.alpinelinux.org/cgit/
$pkgname
/snapshot/
$pkgname
-
$pkgver
.tar.bz2
0001-init-never-overwrite-existing-files.patch
"
"
license
=
"GPL-2"
license
=
"GPL-2"
build
()
{
build
()
{
cd
"
$srcdir
"
/
$pkgname
-
$pkgver
cd
"
$srcdir
"
/
$pkgname
-
$pkgver
patch
-p1
-i
../0001-init-never-overwrite-existing-files.patch
||
return
1
make
||
return
1
make
||
return
1
make
install
DESTDIR
=
"
$pkgdir
"
||
return
1
make
install
DESTDIR
=
"
$pkgdir
"
||
return
1
}
}
md5sums
=
"6b8945b2e3be747caf8cfb29230f180e mkinitfs-2.0_rc6.tar.bz2"
md5sums
=
"6b8945b2e3be747caf8cfb29230f180e mkinitfs-2.0_rc6.tar.bz2
921aadd7e302d5e565e539e611be946e 0001-init-never-overwrite-existing-files.patch"
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