add Recovery

This commit is contained in:
Ing 2024-02-26 01:33:52 +08:00
parent e063c07018
commit 149c76f4aa
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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..."