release: Mount tmpfs at /usr/local/etc only if exists for ISO
authorAaron LI <aly@aaronly.me>
Tue, 12 May 2020 14:38:34 +0000 (22:38 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 12 May 2020 14:45:43 +0000 (22:45 +0800)
commita4527c0f738aaa54419ce99ae3575f8440053a63
tree8a51bb7dd9cd3dca5b7b0d8ab9fd15a26d2cfa98
parentc2dc39383e8e847a12d9a851f2e3cd15ca84a7bf
release: Mount tmpfs at /usr/local/etc only if exists for ISO

For an ISO release built with the 'nopkgs' option, it doesn't have the
'/usr/local/etc' directory.  Thus the boot process would fail because it
cannot mount tmpfs at the non-existent directory '/usr/local/etc'.

Fix this issue by checking the existence of '/usr/local/etc' before
appending the corresponding entry to the ISO's fstab.
nrelease/Makefile
nrelease/root/etc/fstab