search for: modify_existing_adv

Displaying 4 results from an estimated 4 matches for "modify_existing_adv".

2014 Dec 24
0
[PATCH 1/8] extlinux/main.c: support unmounted ext2/3/4 filesystem
...} else { + if (install_file_to_device(path, devfd, update_only)) { + fprintf(stderr, "%s: install file to device error!\n", program); + close(devfd); + return 1; + } + fs_type = EXT2; } sync(); @@ -1533,16 +1560,25 @@ int modify_existing_adv(const char *path) int main(int argc, char *argv[]) { parse_options(argc, argv, MODE_EXTLINUX); + struct stat st; if (!opt.directory || opt.install_mbr || opt.activate_partition) usage(EX_USAGE, 0); + if (stat(opt.directory, &st)) { + fprintf(stderr, "%s: %s:...
2010 Jun 07
0
[PATCH] extlinux: Add the --menu-save option to set the MENU SAVE value from the running system using extlinux
...abel\n", + program); + rv = -1; + } + } return rv; } @@ -877,7 +884,7 @@ int main(int argc, char *argv[]) usage(EX_USAGE, 0); if (opt.update_only == -1) { - if (opt.reset_adv || opt.set_once) + if (opt.reset_adv || opt.set_once || opt.menu_save) return modify_existing_adv(opt.directory); else usage(EX_USAGE, 0); diff --git a/libinstaller/syslxopt.c b/libinstaller/syslxopt.c index 7718de3..728b19e 100644 --- a/libinstaller/syslxopt.c +++ b/libinstaller/syslxopt.c @@ -38,6 +38,7 @@ struct sys_options opt = { .directory = NULL, .device = NULL, .o...
2012 Oct 15
3
Syslinux-4.06-pre14
Another week, *another* -pre. I'm really planning on this being the last one. The shortlog is appended below. Apart from a better fix for the "disabled menu entry" bug it's only documentation updates. Testing from the last -pre's has been pretty quiet, so as soon as Ady and Matt have tested this one and confirmed that the disabled entry bug is finally gone I'll do the
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux, Merry Christmas! These patches will make extlinux work with umounted ext2/3/4 filesystem, for example: $ extlinux -i /dev/sdXN or $ extlinux -i file_block Also it can work with something like: $ extlinux /dev/sdXN --reset-adv or $ extlinux file_block --reset-adv We don't use a new option (I planed to use "-d" but it is already in use), it will check whether the