mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2025-01-31 19:57:22 +01:00
Only reread specific loop device.
Bug with fake raid devices
This commit is contained in:
parent
888e6d204d
commit
ab83fe5684
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -116,7 +116,7 @@ dd if=$DEST/u-boot-sunxi/u-boot-sunxi-with-spl.bin of=/dev/loop0 bs=1024 seek=8
|
||||||
# create one partition starting at 2048 which is default
|
# create one partition starting at 2048 which is default
|
||||||
(echo n; echo p; echo 1; echo; echo; echo w) | fdisk /dev/loop0 >> /dev/null || true
|
(echo n; echo p; echo 1; echo; echo; echo w) | fdisk /dev/loop0 >> /dev/null || true
|
||||||
# just to make sure
|
# just to make sure
|
||||||
partprobe
|
partprobe /dev/loop0
|
||||||
|
|
||||||
# 2048 (start) x 512 (block size) = where to mount partition
|
# 2048 (start) x 512 (block size) = where to mount partition
|
||||||
losetup -o 1048576 /dev/loop1 /dev/loop0
|
losetup -o 1048576 /dev/loop1 /dev/loop0
|
||||||
|
|
Loading…
Add table
Reference in a new issue