Initial conversion to use DNF
This change makes it so that the ARM image creation script uses DNF instead of urpmi. This affords several advantages: 1. Mageia images can be created from non-Mageia systems 2. Mageia images can be created from within Mock 3. ARM images can be created from x86_64 hosts 4. Image building can rely on pre-installed repo configurations This also brings us in line with the Docker image creation process, which also uses DNF.
This commit is contained in:
@ -115,6 +115,6 @@ rm -f ./vmlinuz && ln -r -s ./vmlinuz-5.3.1-desktop-2.mga7 ./vmlinuz
|
||||
```
|
||||
|
||||
## Commands used :
|
||||
./create_arm_img_urpmi.sh --clean --config bananaPro --build-path ./build
|
||||
./create_arm_img_urpmi.sh --all --target bananaPro --size 2 --tainted --nonfree --build-path ./build --config bananaPro 2>&1 | tee -a ./log/creation.log
|
||||
./create_arm_image.sh --clean --config bananaPro --build-path ./build
|
||||
./create_arm_image.sh --all --target bananaPro --size 2 --tainted --nonfree --build-path ./build --config bananaPro 2>&1 | tee -a ./log/creation.log
|
||||
dd if=./build/Mageia-7-bananaPro1.img | pv | dd of=/dev/mmcblk0 ; sync
|
||||
|
@ -24,16 +24,16 @@ 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 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
|
||||
# if [ 0 -ne ${?} ]; then
|
||||
@ -79,13 +79,12 @@ 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
|
||||
|
||||
###############################################
|
||||
## Create a symlink for the lastest kernel : ##
|
||||
|
Reference in New Issue
Block a user