kernel: bootrc: add bootloop=
This commit is contained in:
parent
28709be9a6
commit
be1789d78b
3 changed files with 12 additions and 0 deletions
|
@ -712,6 +712,12 @@ Suppress the
|
||||||
prompt and use
|
prompt and use
|
||||||
.I value
|
.I value
|
||||||
as the answer instead.
|
as the answer instead.
|
||||||
|
.SS \fLbootloop=\fIvalue\fP
|
||||||
|
Always use
|
||||||
|
.I value
|
||||||
|
as the answer to the
|
||||||
|
.L bootargs
|
||||||
|
prompt, retrying if unsuccessful.
|
||||||
.SS \fLrootdir=\fB/root/\fIdir\fP
|
.SS \fLrootdir=\fB/root/\fIdir\fP
|
||||||
.SS \fLrootspec=\fIspec\fP
|
.SS \fLrootspec=\fIspec\fP
|
||||||
Changes the mount arguments for the root file server
|
Changes the mount arguments for the root file server
|
||||||
|
|
|
@ -68,6 +68,11 @@ mt=()
|
||||||
fn main{
|
fn main{
|
||||||
mp=()
|
mp=()
|
||||||
while(~ $#mp 0){
|
while(~ $#mp 0){
|
||||||
|
if(! ~ $#bootloop 0){
|
||||||
|
nobootprompt=$bootloop
|
||||||
|
# 'flatten' for the next boot
|
||||||
|
echo -n $bootloop > '#ec/bootloop'
|
||||||
|
}
|
||||||
if(~ $#nobootprompt 0){
|
if(~ $#nobootprompt 0){
|
||||||
echo
|
echo
|
||||||
showlocaldevs
|
showlocaldevs
|
||||||
|
|
|
@ -32,6 +32,7 @@ fn connectreboot {
|
||||||
|
|
||||||
# set new kernel parameters
|
# set new kernel parameters
|
||||||
echo -n $bootargs > '#ec/bootargs'
|
echo -n $bootargs > '#ec/bootargs'
|
||||||
|
rm -f '#ec/bootloop'
|
||||||
|
|
||||||
# remove part of our temporary root
|
# remove part of our temporary root
|
||||||
/mnt/broot/$cputype/bin/unmount /$cputype/bin /bin
|
/mnt/broot/$cputype/bin/unmount /$cputype/bin /bin
|
||||||
|
|
Loading…
Reference in a new issue