Systemd and containers
Systemd and containers
Posted Jun 18, 2015 8:38 UTC (Thu) by mchapman (subscriber, #66589)In reply to: Systemd and containers by cesarb
Parent article: Systemd and containers
> I have seen code which switches root to the initramfs and runs a binary from there on shutdown. Wouldn't that mean that the initrd needs to be kept resident all the time?
No, the initramfs can be repopulated upon shutdown.
For example, with Dracut this is done by dracut-shutdown.service, which is pulled in by systemd's shutdown.target unit. See https://www.kernel.org/pub/linux/utils/boot/dracut/dracut... for details.