1 |
/* rescue.c - rescue mode */ |
/* rescue.c - rescue mode */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
* Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
5 |
* |
* |
6 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
30 |
#include <grub/dl.h> |
#include <grub/dl.h> |
31 |
#include <grub/partition.h> |
#include <grub/partition.h> |
32 |
#include <grub/env.h> |
#include <grub/env.h> |
33 |
|
#include <grub/parser.h> |
34 |
|
|
35 |
#define GRUB_RESCUE_BUF_SIZE 256 |
#define GRUB_RESCUE_BUF_SIZE 256 |
36 |
#define GRUB_RESCUE_MAX_ARGS 20 |
#define GRUB_RESCUE_MAX_ARGS 20 |
651 |
/* Get a command line. */ |
/* Get a command line. */ |
652 |
grub_rescue_get_command_line ("grub rescue> "); |
grub_rescue_get_command_line ("grub rescue> "); |
653 |
|
|
654 |
if (grub_split_cmdline (line, getline, &n, &args) || n < 0) |
if (grub_parser_split_cmdline (line, getline, &n, &args) || n < 0) |
655 |
continue; |
continue; |
656 |
|
|
657 |
/* In case of an assignment set the environment accordingly |
/* In case of an assignment set the environment accordingly |