Necessary for reboot or halt support from rescue mode. Since linuxrc.s390 currently does everything on s390x, add in handlers for reboot and halt modes. --- loader/linuxrc.s390 | 6 ++++++ scripts/mk-images | 4 ++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390 index ccef4d4..814dd32 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 9e5a94d..67c6bff 100755 --- a/scripts/mk-images +++ b/scripts/mk-images @@ -660,6 +660,10 @@ makeinitrd() { else instbin $IMGPATH ${LOADERBINDIR##$IMGPATH}/shutdown $MBD_DIR /sbin/shutdown instbin $IMGPATH /usr/lib/anaconda-runtime/loader/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 -- 1.6.6.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list