git: initrd: Make shutdown work on the initrd image.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Apr 11 11:37:39 PDT 2021


commit 8506a14b58d5d69ab85449f83cb381b8315efaf0
Author: Sascha Wildner <saw at online.de>
Date:   Sun Apr 11 20:37:25 2021 +0200

    initrd: Make shutdown work on the initrd image.
    
    * Make shutdown default to -o on the initrd because oinit doesn't handle
      signals like its big sibling.
    
    * Install wall(1) and create a dummy /var/run/utmpx for it.
    
    * Link /usr/bin and /usr/sbin to /bin, too. wall(1) is called as
      /usr/bin/wall from shutdown.

Summary of changes:
 initrd/etc/rc            | 1 +
 initrd/mkinitrd.sh       | 7 +++++--
 initrd/rescue/Makefile   | 1 +
 sbin/shutdown/shutdown.c | 4 ++++
 4 files changed, 11 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8506a14b58d5d69ab85449f83cb381b8315efaf0


-- 
DragonFly BSD source repository



More information about the Commits mailing list