autoupdate kernel version at package install and core update scripts.

This commit is contained in:
Arne Fitzenreiter
2011-05-24 08:22:51 +02:00
parent 3b022ebe59
commit 45e5371d88
4 changed files with 7 additions and 3 deletions

View File

@@ -196,6 +196,7 @@ define PAK
fi
cp -v /usr/src/config/rootfiles/packages/$(PROG) /install/packages/package/ROOTFILES
sed -e 's/KVER/$(KVER)/g' -i /install/packages/package/ROOTFILES
sed -e 's/xxxKVERxxx/$(KVER)/g' -i /install/packages/package/install.sh
chmod 755 /install/packages/package/{{,un}install,update}.sh
cd / && tar cf /install/packages/package/files.tmp --files-from=/install/packages/package/ROOTFILES --exclude='#*' \
-p --numeric-owner

View File

@@ -63,7 +63,7 @@ core/%:
#Change KVER to Kernelversion
sed -e "s/KVER/$(KVER)/g" -i /tmp/ROOTFILES
#Remove doubled files with tar/untar/tar to save space
tar -c -C / --files-from=/tmp/ROOTFILES \
-f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \
@@ -80,6 +80,9 @@ core/%:
#build package
cp -f $(DIR_SRC)/config/rootfiles/$@/update.sh /install/packages/package
chmod 755 /install/packages/package/update.sh
#Change xxxKVERxxx to Kernelversion
sed -e "s/xxxKVERxxx/$(KVER)/g" -i /install/packages/package/update.sh
cd /install/packages/package && tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire \
update.sh files ROOTFILES
rm -rf /install/packages/package

View File

@@ -24,7 +24,7 @@
. /opt/pakfire/lib/functions.sh
extract_files
#
KVER=2.6.32.41
KVER=xxxKVERxxx
ROOT=`mount | grep " / " | cut -d" " -f1`
ROOTUUID=`blkid -c /dev/null -sUUID $ROOT | cut -d'"' -f2`
if [ ! -z $ROOTUUID ]; then

View File

@@ -24,7 +24,7 @@
. /opt/pakfire/lib/functions.sh
extract_files
#
KVER=2.6.32.40
KVER=xxxKVERxxx
ROOT=`mount | grep " / " | cut -d" " -f1`
ROOTUUID=`blkid -c /dev/null -sUUID $ROOT | cut -d'"' -f2`
if [ ! -z $ROOTUUID ]; then