summaryrefslogtreecommitdiffstats
path: root/lbu
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2007-02-16 13:16:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2007-02-16 13:16:32 +0000
commit3e8dc3717f14c72885c1b88a9c2fb0e2dd7dde51 (patch)
tree04123d986c7f4e9385a804863dbc41072cc208ba /lbu
parentcfa5f10a4a1bac5ae573833051dddc3bcad168bf (diff)
downloadalpine-conf-3e8dc3717f14c72885c1b88a9c2fb0e2dd7dde51.tar.bz2
alpine-conf-3e8dc3717f14c72885c1b88a9c2fb0e2dd7dde51.tar.xz
0.8 beta. added setup-cryptswap and initial setup-ads
Diffstat (limited to 'lbu')
-rw-r--r--lbu15
1 files changed, 11 insertions, 4 deletions
diff --git a/lbu b/lbu
index f7ee4bf..d7616e9 100644
--- a/lbu
+++ b/lbu
@@ -9,7 +9,7 @@ PREFIX=
# this one is from apk-tools
. $PREFIX/lib/apk/libutil.sh
-VERSION=0.6_beta1
+VERSION=0.8
[ "$SFIC" ] && SFIC="$SFIC -i d"
# globals
@@ -171,6 +171,12 @@ cmd_commit() {
was_mounted=`grep $mnt /proc/mounts`
cd "$ROOT"
+
+ # for upgrading from packages.list times
+ if [ ! -f "$INCLUDE_LIST" ] ; then
+ mkdir -p $(dirname "$INCLUDE_LIST")
+ echo "var/lib/apk/world" > "$INCLUDE_LIST"
+ fi
# Automatically add list and modified files
currentlist=`VERBOSE="" USE_DEFAULT="-a" cmd_status -a | grep -v ^D | awk '{print $2}'`
@@ -199,9 +205,10 @@ cmd_commit() {
die "Problems creating archive. aborting"
fi
- #cp /etc/alpine.conf $mnt
- # we strip off the version number to make upgrades easier.
- [ "$DRYRUN" ] || apk_info | sed 's/-[0-9].*//' > $mnt/packages.list
+ # remove obsolete file
+ if [ -z "$DRYRUN" ] ; then
+ rm -f $mnt/packages.list
+ fi
sync
sleep 1