autoupdate kernel version at package install and core update scripts.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 24 May 2011 06:22:51 +0000 (08:22 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 24 Jul 2011 08:29:08 +0000 (10:29 +0200)
lfs/Config
lfs/core-updates
src/paks/linux-pae/install.sh
src/paks/linux-xen/install.sh

index 01b9cf1c92bb7661fa2ad17135936230a00e7709..fac10eba27c5b270790ff419c9bbdf6af45d68e4 100644 (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
index f7f50cf5d9f502d2301deeaa70545c87e9d36e37..0dd2ecccbc5a20a2e1c939fdacc011154a22eb56 100644 (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
index 83e9f490023533788a59b96326ea1706ad069b3c..60f8bbb42e31f3e949027e792ae79885ea12a186 100644 (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
index 5e03a740c637f7853de6dac4025e5e3a93f93efe..70efa9db7e4b8016a9794ab6a78ab48a9a08ae28 100644 (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