浏览代码

qoriq: pad rootfs with zeros

Presently, sysupgrade -n does *not* reset the overlayfs, retaining
unwanted filesystem contents. Adding PADDING=1 in front of
gen_image_generic.sh in image/Makefile ensures that the overlayfs is
recreated on firstboot.

Fixes: 080a769b4da8 ("qoriq: new target")
Signed-off-by: Russell Senior <[email protected]>
[add Fixes tag, rewrite commit subject and message to respect line
length]
Signed-off-by: Stijn Tintel <[email protected]>
Russell Senior 1 年之前
父节点
当前提交
643a4adf9a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      target/linux/qoriq/image/Makefile

+ 1 - 1
target/linux/qoriq/image/Makefile

@@ -13,7 +13,7 @@ define Build/sdcard-img
                 $(foreach dtb,$(DEVICE_DTS),$(CP) $(KDIR)/image-$(dtb).dtb [email protected]), \
                 $(CP) $(KDIR)/image-/*.dtb [email protected])
 
-        $(SCRIPT_DIR)/gen_image_generic.sh \
+        PADDING=1 $(SCRIPT_DIR)/gen_image_generic.sh \
                 $@ \
                 $(CONFIG_TARGET_KERNEL_PARTSIZE) [email protected] \
                 $(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \