system: fix BR2_INIT_NONE / BR2_INIT_SYSTEMD build
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 14 Jul 2015 08:13:18 +0000 (10:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 14 Jul 2015 08:13:18 +0000 (10:13 +0200)
commitddc63be5294af5418207564ffb5ab1ecc3f9b055
tree770f389d2473caf8c1bf9bce9e66d87cd5c3672d
parent34f95bf9dbb0a2698d425975d83a92fa5e7ca0aa
system: fix BR2_INIT_NONE / BR2_INIT_SYSTEMD build

Following the introduction of the initscripts package in commit
89d39fc7a392530be043bac541ade0bef746edb6 ("initscripts: new package"),
the /etc/inittab file is no longer part of the skeleton, and therefore
is not always installed.

However, system/system.mk tweaks the inittab for getty and filesystem
remount as rw, without taking the precautions of whether the init
system is Busybox or SysV. This commit fixes that by adding the
necessary conditions around the code adjusting the inittab file.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
system/system.mk