mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
add Recovery
This commit is contained in:
parent
ea3181cfa0
commit
6422e5ae8e
@ -113,6 +113,10 @@ CMDLINE['netif_num']="0"
|
|||||||
if grep -q "force_junior" /proc/cmdline; then
|
if grep -q "force_junior" /proc/cmdline; then
|
||||||
CMDLINE['force_junior']=""
|
CMDLINE['force_junior']=""
|
||||||
fi
|
fi
|
||||||
|
if grep -q "recovery" /proc/cmdline; then
|
||||||
|
CMDLINE['force_junior']=""
|
||||||
|
CMDLINE['recovery']=""
|
||||||
|
fi
|
||||||
if [ ${EFI} -eq 1 ]; then
|
if [ ${EFI} -eq 1 ]; then
|
||||||
CMDLINE['withefi']=""
|
CMDLINE['withefi']=""
|
||||||
else
|
else
|
||||||
|
@ -91,6 +91,14 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
|
|||||||
initrd /initrd-rr
|
initrd /initrd-rr
|
||||||
echo "Booting..."
|
echo "Booting..."
|
||||||
}
|
}
|
||||||
|
menuentry 'Boot Recovery' --id recovery {
|
||||||
|
set_gfxpayload
|
||||||
|
echo "Loading kernel..."
|
||||||
|
linux /bzImage-rr ${RR_CMDLINE} recovery
|
||||||
|
echo "Loading initramfs..."
|
||||||
|
initrd /initrd-rr
|
||||||
|
echo "Booting..."
|
||||||
|
}
|
||||||
menuentry 'Force re-install DSM' --id junior {
|
menuentry 'Force re-install DSM' --id junior {
|
||||||
set_gfxpayload
|
set_gfxpayload
|
||||||
echo "Loading kernel..."
|
echo "Loading kernel..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user