armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
4.18k stars 2.28k forks source link

hardcoded mmcblk0 #570

Closed civic9 closed 7 years ago

civic9 commented 7 years ago

I am running armbian under BeeLink MXIII. It is S905, almost like Odroid C2. I know it is not supported by armbian, but I think there are many similar devices on the market and they are quite attractive - cheap, powerfull, with power supply and nice casing, etc. Good for small home servers.

Main problem for me to run armbian (using odroid c2 image) has been hardcoded mmcblk0 in a few places:

I think it can be easly "fixed" by using something else instead of direct device name, like filesystem label, e.g.LABEL=ROOTFS, LABEL=BOOT in /etc/fstab and e.g. "tunefs -L ROOTFS rootfspartitons" during image generation phase.

Probably there are some other places directly referencing mmcblk0.

zador-blood-stained commented 7 years ago

/etc/fstab

Newer (beta) images and next release images for C2 use UUID in fstab and boot script, so this should not be a problem

/etc/init.d/firstrun (resizing root fs)

This is a known issue (#467), it will be fixed eventually

I can also add that u-boot installation (postinst) script will need adjustment too