mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
tested new kexec method
This commit is contained in:
parent
be338643b0
commit
109ccfc9d1
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ usage () {
|
|||
echo ""
|
||||
echo -e " \033[1m-latest-install\033[0m Launch latest archboot environment with downloaded"
|
||||
echo -e " package cache (using kexec)."
|
||||
echo -e " This operation needs at least \033[1m3.3 GB RAM\033[0m."
|
||||
echo -e " This operation needs at least \033[1m3.2 GB RAM\033[0m."
|
||||
echo ""
|
||||
echo -e " \033[1m-latest-image\033[0m Generate latest image files in /archboot directory"
|
||||
echo -e " This operation needs at least \033[1m3.9 GB RAM\033[0m."
|
||||
|
@ -232,10 +232,10 @@ _kexec () {
|
|||
kexec -c -f /"${VMLINUZ}" --initrd="/initrd.img" --reuse-cmdline &
|
||||
sleep 2
|
||||
rm /{${VMLINUZ},initrd.img}
|
||||
while pgrep -x kexec; do
|
||||
while pgrep -x kexec > /dev/null 2>&1; do
|
||||
sleep 1
|
||||
done
|
||||
echo "Rebooting in a few seconds ..."
|
||||
echo -e "\033[1mFinished:\033[0m Rebooting in a few seconds ..."
|
||||
while true; do
|
||||
sleep 1
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue