Changeset 3225 in MondoRescue for branches/3.2/mondo
- Timestamp:
- Dec 30, 2013, 10:46:31 AM (10 years ago)
- Location:
- branches/3.2/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-cli.c
r3205 r3225 663 663 if ((flag_set['k']) && (! bkpinfo->restore_data)) { 664 664 strncpy(bkpinfo->kernel_path, flag_val['k'], MAX_STR_LEN); 665 if (!strcmp(bkpinfo->kernel_path, "failsafe")) { 666 strcpy(bkpinfo->kernel_path, "FAILSAFE"); 667 } 668 if (strcmp(bkpinfo->kernel_path, "FAILSAFE") 669 && !does_file_exist(bkpinfo->kernel_path)) { 665 if (!does_file_exist(bkpinfo->kernel_path)) { 670 666 retval++; 671 667 log_to_screen("You specified kernel '%s', which does not exist\n", bkpinfo->kernel_path); -
branches/3.2/mondo/src/common/libmondo-tools.c
r3205 r3225 940 940 run_program_and_log_output("modprobe brd 2> /dev/null > /dev/null",FALSE); 941 941 if (run_program_and_log_output("grep ramdisk /proc/devices", FALSE)) { 942 if (!ask_me_yes_or_no("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafekernel. Are you?")) {942 if (!ask_me_yes_or_no("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use another kernel. Are you?")) { 943 943 // retval++; 944 944 log_to_screen("It looks as if your kernel lacks ramdisk and initrd support."); -
branches/3.2/mondo/src/common/mondostructures.h
r3191 r3225 548 548 549 549 /** 550 * Path to the user's kernel, or "FAILSAFE" or "SUCKS" to use the kernel 551 * included with Mindi. 550 * Path to the user's kernel 552 551 */ 553 552 char kernel_path[MAX_STR_LEN];
Note:
See TracChangeset
for help on using the changeset viewer.