diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2019-08-07 16:24:03 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2019-08-07 16:24:03 +0300 |
commit | 15b6053cd0b80bc22442ec3ee41ffff7e0927e63 (patch) | |
tree | a8e2ef994b626948498b94b99e9a0c2f73387b1f /ledge-debian | |
parent | a297542e9af6c16157417c78269f414e87e6e2b7 (diff) |
ledge: debian: bug fix, supply image on losetup
Provide the raw image correctly during losetup
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Change-Id: I283ec64532d73b2fc5cb4b1e431b626ffd3348fe
Diffstat (limited to 'ledge-debian')
-rw-r--r-- | ledge-debian/builders-fai.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ledge-debian/builders-fai.sh b/ledge-debian/builders-fai.sh index 3e3bcac8..e463d23a 100644 --- a/ledge-debian/builders-fai.sh +++ b/ledge-debian/builders-fai.sh @@ -4,7 +4,7 @@ set -ex trap cleanup_exit INT TERM EXIT BUILDDIR='/tmp' -LOOPDEV='loop0' +LOOPDEV='loop4' cleanup_exit() { @@ -73,7 +73,7 @@ for rootfs in ${ROOTFS}; do # create rootfs # TODO add kernel from OE builds + EFI directory structure - sudo losetup -P /dev/"$LOOPDEV" + sudo losetup -P /dev/"$LOOPDEV" "$BUILDDIR"/work.raw # rootfs is on the last partition. This might need to change depending on # our build procedure in the future device="$LOOPDEV"'p2' |