Questions tagged [busybox-init]

The implementation of init that comes with BusyBox

init is the first process that's started on a Unix system. Its role is to start other processes and to react when processes dies. This tag is for questions about the implementation of init that's included in the BusyBox suite of utilities that are commonly used on Linux-based embedded systems.

For questions about BusyBox in general, see . For questions about other implementations of init, see , , , , ...

BusyBox init is configured via /etc/inittab; the syntax is similar to traditional SysVinit but the functionality is more restricted.

External links

16 questions
9
votes
1 answer

How to login automatically without typing the root username or password in Buildroot BusyBox init?

If I do: git clone git://git.buildroot.net/buildroot cd buildroot git checkout 2016.05 make qemu_x86_defconfig make BR2_JLEVEL=2 qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw…
6
votes
1 answer

Set environment variable (TZ) for all startup scripts and inittab

I'm working on an embedded Linux system and looking for a way to set the time zone for all processes. The question is: Is there any possibility to set the TZ environment variable at boot time (init scripts) so that all other init scripts have TZ set…
5
votes
2 answers

How can I get /bin/login to not timeout

In my /etc/inittab I am using the following line: ttyS0::respawn:/bin/login This gives me a login prompt if I want to connect to the serial port. But it keeps echoing this: [hostname] login: Login timed out [hostname] login: Login timed out…
Dakkaron
  • 1,997
  • 2
  • 16
  • 25
3
votes
4 answers

Protect against vanishing output redirection targets

I have a daemon running on an embedded Linux device with its output redirected to the serial console: my_daemon > /dev/ttyS0 But now if a user exits the shell running on the serial interface then the serial device gets recreated, which causes the…
phk
  • 5,893
  • 7
  • 41
  • 70
2
votes
1 answer

busysbox reboot doesn't work from init script

We have Beaglebone black based custom board with 256MB RAM and 4GB eMMC. We upgraded from Linux-3.12 to Linux-4.4 and busybox-1.20.2 to busybox-1.26.2. Now in busybox-1.26.2 we are seeing and issue which was not there in busybox-1.20.2 I added…
ART
  • 1,111
  • 3
  • 20
  • 35
1
vote
0 answers

How to start and manage a process in busybox inittab, and rcS as early as possible?

I am working on an embedded Linux system where busybox is being used as init. I have 2 requirements on running my application. My application needs to start as early as possible; It needs to be managed by busybox (respawn if it exits). Firstly, I…
wangt13
  • 317
  • 1
  • 8
1
vote
0 answers

syslogd not ouputting year information

I updated busybox to 1.35.0 and had the same settings as earlier but for some reasons the syslogd is not outputting year in the timestamp information. Prior to this I was using busybox 1.19.3 and it was working fine. I tried to find that if any…
m4n07
  • 181
  • 1
  • 1
  • 4
1
vote
1 answer

Can the Busybox init start a process as unprivileged user

I have a tiny, tiny system comprised of Busybox, an executable application and its dependent libraries ONLY. I am using the Busybox /etc/inittab to start the application as an unprivileged user: ::sysinit:/sbin/ifup -a -f ::respawn:/bin/busybox su…
starfry
  • 7,302
  • 6
  • 47
  • 69
1
vote
1 answer

OpenWRT BusyBox init does not create /etc/init.d/rcS

I'm building an OpenWRT image (Chaos Calmer) that needs BusyBox to be configured to use init. So, in the busybox configuration, I enter the Init Utilities menu, then enable init, as well as support for reading an inittab file. When my image finishes…
maldata
  • 145
  • 5
1
vote
0 answers

What is needed to make a busybox init boot to a shell on an arm device/phone?

I compiled busybox with arm-linux-gnueabihf for and Cortex-A/armv7-a arm device/phone. When I run the binary on android it works well. I decided to modify the android boot image. In the boot image ramdisk I have bin/busybox init which is a link…
Bret Joseph
  • 335
  • 1
  • 3
  • 12
1
vote
0 answers

File not found when running a simple busybox system

I'm running Linux 4.1 and booting into a simple busybox environment. Busybox and shadow packages have been built as static and installed in my rootFS. Busybox is used for the /sbin/init and shadow's login is used for the /bin/login. I used makedevs…
dangeroushobo
  • 537
  • 3
  • 11
  • 24
0
votes
1 answer

Get time after boot

When Linux is booting there are timestamps which time something was loaded etc, so I think that information about boot start time must be available. Is there a way to run in any moment command or something that shows how many seconds until boot is,…
IzZy
  • 135
  • 4
0
votes
1 answer

Busybox init, Kivy python application appears to block execution of ifup

I am experimenting with Buildroot, trying to create a minimal system to optimise cold boot time into a Python application (Kivy GUI). I chose to use Busybox init process because this is supposed to be optimal for embedded systems. I have a Sxx…
0
votes
1 answer

Ubuntu 18.10 boots into initramfs busy shell

I am getting booted into the initramfs shell directly in ubuntu 18.10 I have tried the exit command which leads to the manual fsck is required on /dev/sda2 When I enter fsck /dev/sda2 the shell returns `Either the superblock or the partition table…
user79267
  • 21
  • 1
  • 1
0
votes
0 answers

System V - Respawn service but don't launch at boot

I'm trying to have a System V service relaunched on exit. EDIT: Should have precised that I'm using busybox init system instead of classic systemV I found that It could be done using /etc/inittab with the keyword respawn as action (man…
Arkaik
  • 1,146
  • 5
  • 20
  • 33
1
2