OSDN Git Service

Merge remote-tracking branch 'x86/pie-x86' into q-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 13 May 2020 09:35:52 +0000 (17:35 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 13 May 2020 09:35:52 +0000 (17:35 +0800)
Conflicts:
initrd/init

1  2 
initrd/init
install/scripts/1-install

diff --cc initrd/init
@@@ -131,9 -138,10 +129,10 @@@ debug_shell(
        if [ -x system/bin/sh ]; then
                echo Running MirBSD Korn Shell...
                USER="($1)" system/bin/sh -l 2>&1
+               [ $? -ne 0 ] && /bin/sh 2>&1
        else
                echo Running busybox ash...
 -              sh 2>&1
 +              busybox sh 2>&1
        fi
  }
  
@@@ -512,10 -517,10 +517,10 @@@ install_to(
        for s in `du -sk $files | awk '{print $1}'`; do
                size=$(($size+$s))
        done
-       try_upgrade hd/$asrc
        mkdir -p hd/$asrc
        cd hd/$asrc
 -      rm -rf system*
 +      rm -rf system* *.img
        ( ( cd /; find $files | $CPIO -H newc -o ) | pv -ns ${size}k | ( $CPIO -iud > /dev/null; echo $? > /tmp/result )) 2>&1 \
                | progress_bar "Installing $OS_TITLE to $1" "Expect to write $size KB..."
        result=$((`cat /tmp/result`*255))