Initial support for Raspberry Pi. We continue to support existing ARM

images without any change to the process (except they have a small 30Mb
partition at the begining of the image) but all exisiting documented
processe work for image writing. The RPi is auto configured and a pure
dd to the card, plug and boot.
This commit is contained in:
Peter Robinson 2016-09-21 15:23:18 +01:00
parent 890829fdbb
commit b2f97b7d22

View File

@ -7,9 +7,10 @@ firewall --enabled --service=mdns,ssh
# configure extlinux bootloader # configure extlinux bootloader
bootloader extlinux bootloader extlinux
part /boot --size=512 --fstype ext3 part /boot/fw --size=30 --fstype vfat --asprimary
part swap --size=512 --fstype swap part /boot --size=512 --fstype ext3 --asprimary
part / --size=3584 --fstype ext4 part swap --size=512 --fstype swap --asprimary
part / --size=3584 --fstype ext4 --asprimary
# make sure that initial-setup runs and lets us do all the configuration bits # make sure that initial-setup runs and lets us do all the configuration bits
firstboot --reconfig firstboot --reconfig
@ -31,6 +32,7 @@ dracut-config-generic
rng-tools rng-tools
chrony chrony
extlinux-bootloader extlinux-bootloader
bcm283x-firmware
initial-setup initial-setup
initial-setup-gui initial-setup-gui
#lets resize / on first boot #lets resize / on first boot
@ -53,6 +55,12 @@ libcrypt-nss
%post %post
# Setup Raspberry Pi firmware
cp -Pr /usr/share/bcm283x-firmware/* /boot/fw/
cp -P /usr/share/uboot/rpi_2/u-boot.bin /boot/fw/rpi2-u-boot.bin
cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/fw/rpi3-u-boot.bin
sed -i '/vfat/ d' /etc/fstab
# work around for poor key import UI in PackageKit # work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db* rm -f /var/lib/rpm/__db*
releasever=$(rpm -q --qf '%{version}\n' fedora-release) releasever=$(rpm -q --qf '%{version}\n' fedora-release)