Changeset 2194


Ignore:
Timestamp:
May 8, 2009, 2:22:10 AM (11 years ago)
Author:
Bruno Cornec
Message:

Some SuSE have ramdisk as modules, so modprobe brd first before testing for ramdisk presence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-tools.c

    r2190 r2194  
    957957    if (run_program_and_log_output
    958958        ("grep ramdisk /proc/devices", FALSE)) {
    959         if (!ask_me_yes_or_no
    960             ("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?"))
    961         {
    962             //          retval++;
    963             log_to_screen
    964                 ("It looks as if your kernel lacks ramdisk and initrd support.");
    965             log_to_screen
    966                 ("I'll allow you to proceed but FYI, if I'm right, your kernel is broken.");
     959        /* Some SuSE have ramdisk as modules, so insert it first, then test again */
     960        run_program_and_log_output("modprobe brd 2> /dev/null > /dev/null");
     961        if (run_program_and_log_output
     962            ("grep ramdisk /proc/devices", FALSE)) {
     963            if (!ask_me_yes_or_no
     964                ("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?"))
     965            {
     966                //          retval++;
     967                log_to_screen
     968                    ("It looks as if your kernel lacks ramdisk and initrd support.");
     969                log_to_screen
     970                    ("I'll allow you to proceed but FYI, if I'm right, your kernel is broken.");
     971            }
    967972        }
    968973    }
Note: See TracChangeset for help on using the changeset viewer.