Yeah, I need to find a way to do this dynamically, because I'm guessing that the prefix would change every time the image is created, but that would solve the problem. Thanks, I didn't know about PARTUUID
CentOS - Raspberry PI 4
Re: CentOS - Raspberry PI 4
Re: CentOS - Raspberry PI 4
This is a little rough. (no error checking.) But I figure you'll modify it for your scripts..
Code: Select all
#!/bin/bash
image=$1
kpartx="$(kpartx -av $image)"
read -d" " img_boot_dev img_swap_dev img_root_dev <<<$(grep -o 'loop.p.' <<<"$kpartx")
img_boot_dev=/dev/mapper/$img_boot_dev
img_root_dev=/dev/mapper/$img_root_dev
mkdir -p mnt/boot
PARTUUID=$(blkid -o export $img_root_dev | awk '/PARTUUID/ { print $1}')
mount -t vfat $img_boot_dev mnt/boot
sed -i "s/root=[^[:space:]]\+/root=$PARTUUID/" mnt/boot/cmdline.txt
sync
umount mnt/boot
kpartx -d $image
Re: CentOS - Raspberry PI 4
pgreco, thank you very much for all your work on Centos for RPi - I've been happily using 7 for a while and had been testing 8 in the latter part of last year. Will you be officially releasing Centos 8 for RPi now, or perhaps just stream? Just wondering if you're able to share any roadmap for it, given the Centos 8 announcement in December? Thanks in advance.
Re: CentOS - Raspberry PI 4
We need to ask this, does Raspberry Pi use Hamming code for error correcting like the x86-64 when equipped ....... if not then using the Pi for Linux is a lost cause because ANY single Bit error will cause a catastrophic failure when compiling....
A single Bit error can be caused by anything, magnetic fields from other electronics, your body, sun spots....
Windows has Hamming code style error correcting built into the OS that allow it to run trash code.... this is what made Windows the dominate user OS
A single Bit error can be caused by anything, magnetic fields from other electronics, your body, sun spots....
Windows has Hamming code style error correcting built into the OS that allow it to run trash code.... this is what made Windows the dominate user OS
Re: CentOS - Raspberry PI 4
hello,pgreco,i just wanna to install CentOS to my raspi4 sd card from aarch64.iso[official image such as CentOS-8.3.2011-aarch64-dvd1.iso],not unoffical raw.xz
like CentOS-Userland-8-aarch64-RaspberryPI-Minimal-4-sda.raw.xz,no offence.
i did some search and found UEFI Firmware[https://github.com/pftf/RPi4],but it no works when put it in after installed, no fat partition found,it means needing uefi boot from sd card first,like BIOS on PC,therefor it seems no way to install xxx.iso to sd card and available in sd card interface[no fat partition error].
so how to make xxx.raw.xz by myself,or is that possible to making raw.xz image from iso image or installed from iso, or using raspi linux kernel[https://github.com/raspberrypi/linux] and centos iso someway to build it?
please help me out,i spent it all days by day...
like CentOS-Userland-8-aarch64-RaspberryPI-Minimal-4-sda.raw.xz,no offence.
i did some search and found UEFI Firmware[https://github.com/pftf/RPi4],but it no works when put it in after installed, no fat partition found,it means needing uefi boot from sd card first,like BIOS on PC,therefor it seems no way to install xxx.iso to sd card and available in sd card interface[no fat partition error].
so how to make xxx.raw.xz by myself,or is that possible to making raw.xz image from iso image or installed from iso, or using raspi linux kernel[https://github.com/raspberrypi/linux] and centos iso someway to build it?
please help me out,i spent it all days by day...
Re: CentOS - Raspberry PI 4 - Wifi adapter not seen?
Hi Pablo -- your rPi 4 image installed like a dream, but now I've lost my wifi support (the dreaded "wifi adapter not found" message).
Ethernet is still working properly. This may have happened when I added the GNOME desktop to things after I brought it up.
*Should* the wifi be working? Is my best bet just to start over?
I've booted off a Raspberry Pi OS SD card and confirmed that the wifi hardware is working properly.
Thanks again for a great starting point!
Kevin
Ethernet is still working properly. This may have happened when I added the GNOME desktop to things after I brought it up.
*Should* the wifi be working? Is my best bet just to start over?
I've booted off a Raspberry Pi OS SD card and confirmed that the wifi hardware is working properly.
Thanks again for a great starting point!
Kevin
Re: CentOS - Raspberry PI 4
Hi Pablo,
I was happy to find a CentOS 8 image for Raspberry Pi 4 (Userland, minimal) in April this year und installed it successfully.
Now I made an update (yum update) - and lost wifi. "nmcli d" does not show the device any more. Apparently it is not recognized at boot time.
I would appreciate any hint how to fix this. How can I return to the previous stable version?
Kind regards
Michael
I was happy to find a CentOS 8 image for Raspberry Pi 4 (Userland, minimal) in April this year und installed it successfully.
Now I made an update (yum update) - and lost wifi. "nmcli d" does not show the device any more. Apparently it is not recognized at boot time.
I would appreciate any hint how to fix this. How can I return to the previous stable version?
Kind regards
Michael
Re: CentOS - Raspberry PI 4
... just noticed my system time jumped back to June 22 ... ???
Re: CentOS - Raspberry PI 4
... due to lack of internet. When I connected over ethernet, RaPi4 catched the correct time again. - Still wifi is missing.