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).
352
questions
0
votes
1
answer
31
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
32
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 ...
0
votes
0
answers
25
views
OpenRC not starting services
For testing purposes, I need a quick way to generate a root filesystem to use for booting freshly built Linux kernels. I've been doing this by using Docker to create a filesystem and then transferring ...
0
votes
1
answer
50
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 ...
0
votes
0
answers
26
views
Is the first I/O apic in the MADT table special?
Is the first I/O APIC in the madt table special? Is it always supposed to contain all the ISA IRQs if there is no legacy PIC? I heard this is called the boot-APIC, do you have a reference?
1
vote
2
answers
40
views
Shut down actions order: write buffers after RO root remount
Exploring amazing Book How Linux Works by Brian Ward I usually have no question. But this one. At the "6.7.0 Shutting Down Your System" there is an ordered list of jobs.
After remount root ...
0
votes
1
answer
776
views
Disabling the autostart of a service from /etc/init.d without disabling the service?
I have a service that gets started via /etc/init.d at boot and that cause the final steps of the boot processes to be delayed long enough that it's possible to log in via the graphic display manager ...
0
votes
1
answer
2k
views
How to boot into a terminal in arch
I ran sysctl disable display-manager.service and rebooted arch thinking it would boot into a terminal. Now I'm locked out of the machine.
I've tried adding init=/bin/bash to the boot options but it ...
0
votes
0
answers
740
views
starting init: /bin/sh exists but couldn't execute it (error -8)
I'am building Root filesystem for the Linux Kernel(6.2.11).
I want to compile the GNU Bash Shell(4.1) as the init program of the system. I built bash and installed it to the path /bin/, then linked /...
1
vote
0
answers
103
views
What is /dev/selinux?
Is there a device node called /dev/selinux
Android 13 init crashes with the following
[ 1.417333] (7)[1:init]selinux: SELinux: Loaded file_contexts
[ 1.417341] (7)[1:init]selinux:
[ 1....
0
votes
1
answer
489
views
Can I call /sbin/init from init script
Let us say I have a custom init like this
#!/bin/bash
sleep infinity
Which of these will load init
#!/bin/bash
/sbin/init
sleep infinity
#!/bin/bash
exec /sbin/init
sleep infinity
I know that exec ...
1
vote
1
answer
525
views
Alpine Linux in Raspberry Pi not activating swap partition on boot
Probably this is a really naïve question, but I can’t make this work by trying the methods I’ve found in the existing documentation or in other solutions.
I have Alpine Linux installed on a Raspberry ...
0
votes
1
answer
255
views
Who mounts /proc and /sys in GNU/Linux systems?
If you build a custom GNU/Linux system for an embedded device, do you need to execute
mount -t proc proc /proc
mount -t sysfs sysfs /sys
somewhere in init process or is this done automatically by the ...
1
vote
1
answer
938
views
How to know the boot time (kernel + init) in Alpine using openRC?
I made a bit of research on the matter and also asked ChatGPT, but there doesn't seem to be a way to measure full boot time of an alpine distribution with OpenRC.
Using dmesg, I can see the last ...
4
votes
2
answers
8k
views
Which user does systemd start services as?
I'd like to learn about how systemd starts services, specifically which user the service is started as, and I'd like to use Jenkins running on my Linux PC as an example.
I know that init is pid 1, the ...