Fix for read-only rootfs

Signed-off-by: Xmister <xmisterhu@gmail.com>