rename --fakefs to --rootfs

because it can also be used on realfs
This commit is contained in:
Nick Chan committed 2023-01-17 20:48:54 +08:00
1 parent c958d50c82
commit 43a8f51145
3 files changed
+7 -4

No files matched your search

+1
View File
@@ -134,6 +134,7 @@ void* connected_recovery_mode(struct irecv_device_info* info) {
void* connected_dfu_mode(struct irecv_device_info* info) {
if (ecid_wait_for_dfu == info->ecid) {
ecid_wait_for_dfu = 0;
puts("");
LOG(LOG_INFO, "Device entered DFU mode successfully");
}
unsubscribe_cmd();
+4 -2
View File
@@ -39,12 +39,14 @@ void exec_checkra1n() {
LOG(LOG_FATAL, "Cannot chmod %s: %d (%s)", checkra1n_path, errno, strerror(errno));
unlink(checkra1n_path);
}
char* args = "-pvE";
if (verbose < 2) args = "-pE";
pid_t pid;
char* checkra1n_argv[] = {
checkra1n_path,
"-pvE",
args,
NULL
};
pid_t pid;
ret = posix_spawn(&pid, checkra1n_path, NULL, NULL, checkra1n_argv, environ);
if (ret) {
LOG(LOG_FATAL, "Cannot posix spawn %s: %d (%s)", checkra1n_path, errno, strerror(errno));
+2 -2
View File
@@ -145,7 +145,7 @@ static struct option longopts[] = {
{"start-from-pongo", no_argument, NULL, 'P'},
{"debug-logging", no_argument, NULL, 'V'},
{"boot-args", required_argument, NULL, 'e'},
{"fakefs", required_argument, NULL, 'f'},
{"rootfs", required_argument, NULL, 'f'},
{NULL, 0, NULL, 0}};
int usage(int e)
@@ -161,7 +161,7 @@ int usage(int e)
"\t-v, --debug-logging\t\t\tEnable debug logging\n"
"\t\tThis option can be repeated for extra verbosity.\n"
"\t-e, --boot-args <boot arguments>\tXNU boot arguments\n"
"\t-f, --fakefs <root device>\t\tBoots fakefs on <root device>\n",
"\t-f, --rootfs <root device>\t\tBoots rootful setup on <root device>\n",
getprogname());
exit(e);
}