diff options
author | Jybz <j.biernacki@free.fr> | 2020-08-15 23:57:36 +0200 |
---|---|---|
committer | Jybz <j.biernacki@free.fr> | 2020-08-15 23:57:36 +0200 |
commit | cc0fd97a55489cebd8f2ae9d28816d758405e4d0 (patch) | |
tree | 26f208752b5a4bc44d3e044e5e1c35dc3aa7740d | |
parent | 49f665faffcd591c5ef63472a5935b0f755052a3 (diff) | |
download | mageia4arm-cc0fd97a55489cebd8f2ae9d28816d758405e4d0.tar mageia4arm-cc0fd97a55489cebd8f2ae9d28816d758405e4d0.tar.gz mageia4arm-cc0fd97a55489cebd8f2ae9d28816d758405e4d0.tar.bz2 mageia4arm-cc0fd97a55489cebd8f2ae9d28816d758405e4d0.tar.xz mageia4arm-cc0fd97a55489cebd8f2ae9d28816d758405e4d0.zip |
Modify urpm method for bananaPro
-rwxr-xr-x | create_arm_image.sh | 10 | ||||
-rw-r--r-- | platforms/bananaPro/second_stage_install.sh | 8 |
2 files changed, 17 insertions, 1 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh index bd0e1ba..5142231 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -246,6 +246,16 @@ function addurpmimedia() return 0 } +function updateurpmmirror() +{ + title "updating mirror" + /sbin/urpmi.update -a --urpmi-root "${BUILD_PATH}" + if [ ${?} -ne 0 ]; then + error "line ${LINENO} can't update mirrors : exiting" + exit ${ERR_1} + fi + return 0 +} function installbasesystem() { diff --git a/platforms/bananaPro/second_stage_install.sh b/platforms/bananaPro/second_stage_install.sh index 47cad5a..6f24ba5 100644 --- a/platforms/bananaPro/second_stage_install.sh +++ b/platforms/bananaPro/second_stage_install.sh @@ -24,15 +24,18 @@ export ARCH=arm /usr/bin/chown :systemd-journal -R /var/log/journal #Install all packages you need -/usr/bin/dnf --setopt=ignorearch=True --nogpgcheck --assumeyes install 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 +/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 +# /usr/bin/dnf --setopt=ignorearch=True --nogpgcheck --assumeyes install 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/bin/dnf --setopt=ignorearch=True --nogpgcheck --assumeyes install u-boot-tools mindi-busybox plymouth-scripts #systemd-bootchart libcap-utils keyutils lvm2 #dmsetup # ############################ # ## For compiling a module ## # ############################ # BUG : Make does not like to build inside chroot. It doesn't find tools. Impossible to build any module there. +# /usr/sbin/urpmi --ignorearch --no-verify-rpm --auto --split-level 200 --split-length 0 kernel-source-latest # /usr/bin/dnf --setopt=ignorearch=True --nogpgcheck --assumeyes install kernel-source-latest # #See if it is a Server or Desktop kernel : # rpm -q kernel-serveur-latest @@ -79,11 +82,14 @@ ln -r -s /boot/initrd-${K_INST_VERSION}.img /boot/initrd.img ########################################### ## Install a package from testing repo : ## ########################################### +# urpmi.update Testing +# urpmi --auto --media Testing kernel-desktop-latest # dnf --refresh --enablerepo=updates_testing-\* --assumeyes install kernel-desktop-latest ############################################ ## Installing the kernel (not on testing) ## ############################################ +# urpmi --auto kernel-desktop-latest # dnf --refresh --assumeyes install kernel-desktop-latest ############################################### |