about summary refs log tree commit diff
path: root/mkrootfs.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-12-05 07:06:39 +0100
committerJuan RP <xtraeme@gmail.com>2014-12-05 07:06:39 +0100
commitb6ca6f80277714b87b5a423ec0c0fb82ae7c7b6f (patch)
tree74c61c760d7763831331dc6cc22ba0bb859c00fa /mkrootfs.sh.in
parent4aaaa89d1c5566eb112754c358a37cfcbf76d792 (diff)
downloadhrmpf-b6ca6f80277714b87b5a423ec0c0fb82ae7c7b6f.tar.gz
hrmpf-b6ca6f80277714b87b5a423ec0c0fb82ae7c7b6f.tar.xz
hrmpf-b6ca6f80277714b87b5a423ec0c0fb82ae7c7b6f.zip
mkrootfs: put /boot/MLO at the head on beaglebone.
This file must be in the first sectors of the /boot FAT partition on the image.
Diffstat (limited to 'mkrootfs.sh.in')
-rw-r--r--mkrootfs.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in
index af85c1a..ca4d1dd 100644
--- a/mkrootfs.sh.in
+++ b/mkrootfs.sh.in
@@ -218,7 +218,13 @@ fi
 
 tarball=void-${PLATFORM}-rootfs-$(date '+%Y%m%d').tar.xz
 
-run_cmd "tar cp -C $rootfs . | $XZ -9 > $tarball"
+if [ "$PLATFORM" = "beaglebone" ]; then
+    # On Beaglebone make sure that boot/MLO is at the head.
+    run_cmd "tar -cp --posix -C $rootfs ./boot/MLO . | $XZ -9 > $tarball"
+else
+    run_cmd "tar -cp --posix -C $rootfs . | $XZ -9 > $tarball "
+fi
+
 rm -rf $rootfs
 
 info_msg "Successfully created $tarball ($PLATFORM)"