Changeset 909 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Nov 1, 2006, 1:28:11 AM (19 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-devices.c
r877 r909 1530 1530 } 1531 1531 paranoid_pclose(fin); 1532 sprintf(tmp, "%s | grep - w \"%s\" > /dev/null 2> /dev/null",1532 sprintf(tmp, "%s | grep -E \"^%s\" > /dev/null 2> /dev/null", 1533 1533 SWAPLIST_COMMAND, device_with_space); 1534 1534 log_msg(4, "tmp (command) = '%s'", tmp); -
branches/stable/mondo/src/common/libmondo-tools.c
r686 r909 1396 1396 log_msg(4, "Done. Great. Seeting command to something"); 1397 1397 strcpy(command, 1398 "grep -v \":\" /etc/fstab | grep -vx \"#.*\" | grep - w \"/boot\" | tr -s ' ' '\t' | cut -f1 | head -n1");1398 "grep -v \":\" /etc/fstab | grep -vx \"#.*\" | grep -E \"[ ]/boot[ ]\" | tr -s ' ' '\t' | cut -f1 | head -n1"); 1399 1399 log_msg(4, "Cool. Command = '%s'", command); 1400 1400 strcpy(tmp, call_program_and_get_last_line_of_output(command)); … … 1410 1410 } 1411 1411 } else { 1412 sprintf(command, "mount | grep - w \"%s\"", tmp);1412 sprintf(command, "mount | grep -E \"^%s\"", tmp); 1413 1413 log_msg(3, "command = %s", command); 1414 1414 if (run_program_and_log_output(command, 5)) {
Note:
See TracChangeset
for help on using the changeset viewer.