Skip to content

Commit

Permalink
qoriq: pad rootfs with zeros
Browse files Browse the repository at this point in the history
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: 080a769 ("qoriq: new target")
Signed-off-by: Russell Senior <russell@personaltelco.net>
[add Fixes tag, rewrite commit subject and message to respect line
length]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
  • Loading branch information
RussellSenior authored and stintel committed Dec 2, 2023
1 parent c342bdc commit 643a4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/linux/qoriq/image/Makefile
Expand Up @@ -13,7 +13,7 @@ define Build/sdcard-img
$(foreach dtb,$(DEVICE_DTS),$(CP) $(KDIR)/image-$(dtb).dtb $@.boot), \
$(CP) $(KDIR)/image-/*.dtb $@.boot)

$(SCRIPT_DIR)/gen_image_generic.sh \
PADDING=1 $(SCRIPT_DIR)/gen_image_generic.sh \
$@ \
$(CONFIG_TARGET_KERNEL_PARTSIZE) $@.boot \
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \
Expand Down

0 comments on commit 643a4ad

Please sign in to comment.