From 67173d02a884a7769c47e45f8fea5a97827c15c4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 5 Sep 2018 19:43:23 +0200 Subject: initscript sets HOME='/root', sets max devtmpfs to 4k and chdir to %HOME before invoking sh Signed-off-by: Toni Uhlig --- scripts/init.rootfs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/init.rootfs b/scripts/init.rootfs index 651acef..19757b8 100644 --- a/scripts/init.rootfs +++ b/scripts/init.rootfs @@ -1,10 +1,11 @@ #!/bin/sh export PATH="/bin:/sbin:/usr/bin:/usr/sbin" +export HOME='/root' export PS1='\w \h\$ ' UDHCPC_ARGS= mkdir -p /dev /proc /sys -mount -t devtmpfs none /dev +mount -t devtmpfs none /dev -o size=4k mount -t proc none /proc mount -t sysfs none /sys mount -t debugfs nodev /sys/kernel/debug @@ -18,7 +19,7 @@ if [ x"$(command -v syslogd)" != x ]; then fi echo '4 4 1 7' >/proc/sys/kernel/printk -cat <