MAJ
This commit is contained in:
parent
360cff937c
commit
dd60f5ee3b
@ -34,7 +34,7 @@ TARGET="bananaPro"
|
|||||||
TARGET_VERSION="1"
|
TARGET_VERSION="1"
|
||||||
|
|
||||||
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
# 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
|
# image will be created here
|
||||||
# TO MODIFY
|
# TO MODIFY
|
||||||
|
@ -23,10 +23,10 @@ export ARCH=arm
|
|||||||
/usr/bin/chown :systemd-journal -R /var/log/journal
|
/usr/bin/chown :systemd-journal -R /var/log/journal
|
||||||
|
|
||||||
#Install all packages you need
|
#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 :
|
#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 ##
|
# ## For compiling a module ##
|
||||||
@ -71,13 +71,22 @@ export ARCH=arm
|
|||||||
# rm -f /boot/initrd
|
# rm -f /boot/initrd
|
||||||
# ln -r -s "$(dirname "${INITRD_FILE}")/u$(basename "${INITRD_FILE}")" /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 : ##
|
## Create a symlink for the lastest kernel : ##
|
||||||
###############################################
|
###############################################
|
||||||
#Last rpm package :
|
# #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/' )
|
# 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 :
|
#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
|
ln -r -s "${VMLINUZ}" /boot/uvmlinuz
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user