Permalink
Browse files

narcissus: also fix fakeroot issues with ext2 and jffs2 images

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
1 parent c50fd59 commit 461cd5e7b87745da04977ee4455287e43c773cbb @koenkooi koenkooi committed Jun 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/assemble-image.sh
@@ -189,15 +189,15 @@ function do_ubifs()
function do_jffs2()
{
echo "creating jffs2 image"
- mkfs.jffs2 -x lzo --root=${IMAGE_ROOTFS} --faketime --output=${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.jffs2 ${EXTRA_IMAGECMD_jffs2}
+ ${FAKEROOT} mkfs.jffs2 -x lzo --root=${IMAGE_ROOTFS} --faketime --output=${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.jffs2 ${EXTRA_IMAGECMD_jffs2}
}
function do_ext2()
{
echo "creating ext2 image"
export ROOTFS_SIZE="$(du -ks ${IMAGE_ROOTFS} | awk '{print 65536 + $1}')"
echo "running: genext2fs -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ext2 ${EXTRA_IMAGECMD_ext2}"
- genext2fs -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ext2 ${EXTRA_IMAGECMD_ext2}
+ ${FAKEROOT} genext2fs -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ext2 ${EXTRA_IMAGECMD_ext2}
}
function print_header()

0 comments on commit 461cd5e

Please sign in to comment.