Questions tagged [init]
init is the first actual process (PID 1) spawned during the boot sequence of a UNIX system. Some systems may rely on alternative solutions such as systemd or Upstart (Ubuntu).
362 questions
0 votes
1 answer
99 views
How can I list the existing runit services?
In sysvinit, we could list /etc/init.d. In systemd, the solution was a systemctl --all. What to do in runit? The sv command can only manage induvidual services, but not list them.
0 votes
0 answers
128 views
How to config uboot loglevel to get debug logs on boot
The problem is while booting up rasbberry pi with uboot as boot loader not able to decrypt encrypted rootfs partition with initramfs,to debug and analyse what happening want to enable uboot debug logs....
0 votes
0 answers
92 views
Docker attach on a container running /sbin/init
I run a Cisco XRd docker container on my Linux Ubuntu host. I run the image using docker run -it -d command. The image's entrypoint is /usr/sbin/init, indeed: root@eve-ng-6:/opt/unetlab/html# docker ...
0 votes
0 answers
66 views
Kernel Boot custom init script and rootfs
i am using passing a script as init= for kernel boot. I use this script to setup overlayfs using two partitions on an mmc device. This works fine. I use root=/dev/mmcblk0p1 as the root. at boot, i ...
2 votes
0 answers
103 views
Initramfs for Live CD of Linux distribution
I have problems with creating initramfs for ISO live cd. I don't know whats wrong with init script in initramfs, you can see below the screenshots about trying to boot kernel and initramfs, the first ...
0 votes
0 answers
121 views
How Do SSH-Launched Long-Running Background Jobs Detach Without nohup or disown?
When running a long-running command in the background over SSH from a non-interactive shell script, I noticed the process continues running on the remote machine without using nohup, disown, or ...
0 votes
0 answers
41 views
sinit failing to run in firecracker vmm
I am playing around with firecrackver VMM. I have extracted rootfs from a python docker image like this. docker export $(docker create python:latest) --output="python.tar" mkdir python tar -...
5 votes
1 answer
653 views
Why /sys/devices/.../product_serial sometimes reads as garbage?
Service reads sys/devices/virtual/dmi/id/product_serial somewhere at start and generally it contains some typical hex number of ten digits (e.g. 01212302C5) with newline. However sometimes the content ...
1 vote
0 answers
344 views
How to add a custom init process to initramfs image built with Dracut?
I want to use Dracut for initramfs image creation. This image should be able to shrink a root filesystem on a Fedora machine. I would like to test partition shrinking flow manually first. If ...
0 votes
1 answer
77 views
lsns reports different output based on user running it
The output of lsns looks different based on the privilege of the user running it. ubuntu user and root user get different results: ubuntu@ubuntu:~$ lsns NS TYPE NPROCS PID USER COMMAND ...
1 vote
1 answer
257 views
How to print logs to serial port without specifying 'console' in Linux?
I am working on an embedded Linux system (5.19.10), and I am using busybox as the main part of file system. Now I am trying to run a test which should output logs to the serial port (ttyS0). But I did ...
1 vote
1 answer
232 views
How to start the busybox shell in initramfs in Linux?
I am working on an embedded Linux system (kernel-5.10.24), and now I am trying to create the initramfs where there is an interactive shell. The rootfs is mainly based on busybox, and the initramfs ...
0 votes
1 answer
184 views
Custom initrd script failing to init "Attempted to kill init"
I am trying to create a custom ramdisk, but it keeps failing right before launching init. Here is the script: https://gist.github.com/amanuel2/f3e8bb9399f3b3bd36a90cd925ecf63d Logs: Edit 2: Logs: ...
1 vote
1 answer
370 views
Systemd: should I use wants/requires for already enabled service listed in After=
I have a systemd service named webserver.service that is wanted by multiuser.target (enabled by default on system). I have another service under another target named test.service that I want to run ...
3 votes
2 answers
630 views
How is PID 1 made special and unkillable?
Using docker, I recently found that PID 1 is by default unkillable by SIGTERM. Yet you can still catch SIGTERM in PID 1 if you setup a handler in the process. So this doesn't seem to be the case of ...