diff options
-rw-r--r-- | loader/linuxrc.s390 | 6 | ||||
-rwxr-xr-x | scripts/mk-images | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390 index ccef4d45f..814dd3247 100644 --- a/loader/linuxrc.s390 +++ b/loader/linuxrc.s390 @@ -41,6 +41,12 @@ # debug: set -x +if [ "${0##*/}" = "reboot" ]; then + kill -USR2 1 +elif [ "${0##*/}" = "halt" ]; then + kill -USR1 1 +fi + VERSION=1.2 export TEXTDOMAIN=s390installer diff --git a/scripts/mk-images b/scripts/mk-images index 3355b9a4b..0695f4e89 100755 --- a/scripts/mk-images +++ b/scripts/mk-images @@ -659,6 +659,10 @@ makeinitrd() { else instbin $IMGPATH ${LOADERBINDIR##$IMGPATH}/shutdown $MBD_DIR /sbin/shutdown instbin $IMGPATH /usr/share/anaconda/linuxrc.s390 $MBD_DIR /sbin/init + ( cd $MBD_DIR/sbin + ln -sf linuxrc.s390 reboot + ln -sf linuxrc.s390 halt + ) instbin $IMGPATH /usr/sbin/dasdfmt $MBD_DIR /sbin/dasdfmt cp -a $IMGPATH/usr/sbin/*_cio_free $MBD_DIR/sbin fi |