aboutsummaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2019-11-16 18:14:44 +0000
committerJybz <j.biernacki@free.fr>2019-11-16 18:14:44 +0000
commitdd60f5ee3b82ee5f0f6a4c77754d8979b144980c (patch)
tree7580d1fd367a12ca111a721b614d5b5951e25183 /platforms
parent360cff937cb0807fc340c9c872cb7730c01c6e9f (diff)
downloadmageia4arm-dd60f5ee3b82ee5f0f6a4c77754d8979b144980c.tar
mageia4arm-dd60f5ee3b82ee5f0f6a4c77754d8979b144980c.tar.gz
mageia4arm-dd60f5ee3b82ee5f0f6a4c77754d8979b144980c.tar.bz2
mageia4arm-dd60f5ee3b82ee5f0f6a4c77754d8979b144980c.tar.xz
mageia4arm-dd60f5ee3b82ee5f0f6a4c77754d8979b144980c.zip
MAJ
Diffstat (limited to 'platforms')
-rw-r--r--platforms/bananaPro/mageia4arm.cfg2
-rw-r--r--platforms/bananaPro/second_stage_install.sh19
2 files changed, 15 insertions, 6 deletions
diff --git a/platforms/bananaPro/mageia4arm.cfg b/platforms/bananaPro/mageia4arm.cfg
index eb106c9..73e298f 100644
--- a/platforms/bananaPro/mageia4arm.cfg
+++ b/platforms/bananaPro/mageia4arm.cfg
@@ -34,7 +34,7 @@ TARGET="bananaPro"
TARGET_VERSION="1"
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
-#MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/${MAGEIA_VERSION}/${ARM_VERSION}"
+MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/${MAGEIA_VERSION}/${ARM_VERSION}"
# image will be created here
# TO MODIFY
diff --git a/platforms/bananaPro/second_stage_install.sh b/platforms/bananaPro/second_stage_install.sh
index b949eca..0dba4cc 100644
--- a/platforms/bananaPro/second_stage_install.sh
+++ b/platforms/bananaPro/second_stage_install.sh
@@ -23,10 +23,10 @@ export ARCH=arm
/usr/bin/chown :systemd-journal -R /var/log/journal
#Install all packages you need
-/usr/sbin/urpmi --ignorearch --no-verify-rpm --auto --split-level 200 --split-length 0 basesystem chrony polkit lockdev rng-tools man openssh-server rfkill wireless-tools bluez wpa_supplicant make rsync kernel-desktop-latest binutils # systemd-bootchart libcap-utils keyutils mindi-busybox plymouth-scripts lvm2 #dmsetup
+/usr/sbin/urpmi --ignorearch --no-verify-rpm --auto --split-level 200 --split-length 0 basesystem chrony polkit lockdev rng-tools man openssh-server rfkill wireless-tools bluez wpa_supplicant make rsync binutils ldetect usbutils #kernel-desktop-latest # systemd-bootchart libcap-utils keyutils mindi-busybox plymouth-scripts lvm2 #dmsetup
#For dracut :
-/usr/sbin/urpmi --ignorearch --no-verify-rpm --auto --split-level 200 --split-length 0 u-boot-tools mindi-busybox plymouth-scripts #systemd-bootchart libcap-utils keyutils lvm2 #dmsetup
+# /usr/sbin/urpmi --ignorearch --no-verify-rpm --auto --split-level 200 --split-length 0 u-boot-tools mindi-busybox plymouth-scripts #systemd-bootchart libcap-utils keyutils lvm2 #dmsetup
# ############################
# ## For compiling a module ##
@@ -71,13 +71,22 @@ export ARCH=arm
# rm -f /boot/initrd
# ln -r -s "$(dirname "${INITRD_FILE}")/u$(basename "${INITRD_FILE}")" /boot/initrd
+###########################################
+## Install a package from testing repo : ##
+###########################################
+urpmi.update Testing
+urpmi --auto --media Testing kernel-desktop-latest
+
###############################################
## Create a symlink for the lastest kernel : ##
###############################################
-#Last rpm package :
-KERNELRPM=$(rpm -qa --last | grep "^kernel-[sd]e[[:alpha:]]*-[[:digit:]]" | head -n 1 | cut -d ' ' -f 1 | sed -e 's/\(kernel-[[:alnum:]]*-[\.[:digit:]]*-[\.[:alnum:]]*\)-.*/\1/' )
+# #Last rpm package :
+# KERNELRPM=$(rpm -qa --last | grep "^kernel-[sd]e[[:alpha:]]*-[[:digit:]]" | head -n 1 | cut -d ' ' -f 1 | sed -e 's/\(kernel-[[:alnum:]]*-[\.[:digit:]]*-[\.[:alnum:]]*\)-.*/\1/' )
+# #Get the vmlinuz file :
+# VMLINUZ=$(urpmf ${KERNELRPM} | grep "boot/vmlinuz" | cut -d ':' -f 2)
#Get the vmlinuz file :
-VMLINUZ=$(urpmf ${KERNELRPM} | grep "boot/vmlinuz" | cut -d ':' -f 2)
+VMLINUZ=$(ls --sort=time -1 /boot/vmlinuz-[[:digit:]]* | head -n 1)
+rm -f /boot/uvmlinuz
ln -r -s "${VMLINUZ}" /boot/uvmlinuz