orangepi-xunlong / orangepi-build

Orange Pi build for H2+, H3, H5, H6, H616, RK3328, RK3399 and RK3588(s)
http://www.orangepi.cn/
GNU General Public License v2.0
630 stars 272 forks source link

SD Card image does not build. #127

Open sallevan opened 5 months ago

sallevan commented 5 months ago

On yesterday's -next branch checkout at least. And won't, in my understanding of how /dev/loop Linux interface works: code in scripts/debootstrap.sh line 626 is incorrect.

` losetup $LOOP ${SDCARD}.raw

    # loop device was grabbed here, unlock
    flock -u $FD

    partprobe $LOOP

` It won't work this way. partprobe is redundant, the code should be:

` losetup -P $LOOP ${SDCARD}.raw

    # loop device was grabbed here, unlock
    flock -u $FD

`