Skip to content

Commit

Permalink
base-files: fix option to make /var persistent
Browse files Browse the repository at this point in the history
The option was initially named TARGET_ROOTFS_LN_VAR_TMP, and the check
was correct. When renaming the option to something more suitable, the
check was changed to check for n, but when an option is not set, it's
not n but empty. This results in the check always evaluating to false.
Fix the check by checking for y with ifneq.

Fixes: 57807f5 ("base-files: add option to make /var persistent")

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
  • Loading branch information
stintel committed Aug 23, 2021
1 parent 98eb95d commit 669d920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/base-files/Makefile
Expand Up @@ -181,7 +181,7 @@ define Package/base-files/install
mkdir -p $(1)/www
mkdir -p $(1)/root
$(LN) /proc/mounts $(1)/etc/mtab
ifeq ($(CONFIG_TARGET_ROOTFS_PERSIST_VAR),n)
ifneq ($(CONFIG_TARGET_ROOTFS_PERSIST_VAR),y)
rm -f $(1)/var
$(LN) tmp $(1)/var
else
Expand Down

0 comments on commit 669d920

Please sign in to comment.