Displaying 5 results from an estimated 5 matches for "old_append".
Did you mean:
o_append
2016 Jun 01
2
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems
and change root suggested by --suggest option in virt-rescue.
Commands are passed on kernel command line in format
guestfs_command=command;. Command ends with a semicolon and there can be
multiple commands specified. These are executed just before bash starts.
On successfull run user is presented directly with bash in
2016 Jun 01
0
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...strlen (key1) - strlen (key2);
}
+/* Use autodetected suggested filesystems */
+static void
+use_suggestions (char **cmds)
+{
+ size_t i;
+ if (cmds == NULL) return;
+ read_only = 0;
+
+ /* Craft kernel command line from suggested commands */
+ for (i = 0; cmds[i] != NULL; i++) {
+ char *old_append = append;
+ append = xasprintf ("%s guestfs_command=%s;", append == NULL? "" : append, cmds[i]);
+ if (old_append != NULL)
+ free (old_append);
+ }
+}
+
/* virt-rescue --suggest flag does a kind of inspection on the
* drives and suggests mount commands that you sh...
2016 May 24
1
[PATCH] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems
and change root suggested by --suggest option in virt-rescue.
Commands are passed on kernel command line in format
guestfs_command=command;. Command ends with a semicolon and there can be
multiple commands specified. These are executed just before bash starts.
On successfull run user is presented directly with bash in
2016 Jun 09
2
Re: [PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...tected suggested filesystems */
> +static void
> +use_suggestions (char **cmds)
> +{
> + size_t i;
> + if (cmds == NULL) return;
> + read_only = 0;
> +
> + /* Craft kernel command line from suggested commands */
> + for (i = 0; cmds[i] != NULL; i++) {
> + char *old_append = append;
> + append = xasprintf ("%s guestfs_command=%s;", append == NULL? "" : append, cmds[i]);
> + if (old_append != NULL)
> + free (old_append);
> + }
I'd loop over the commands, calculate the length of the resulting
string, allocate once the ne...
2016 Jun 16
0
Re: [PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...+static void
>> +use_suggestions (char **cmds)
>> +{
>> + size_t i;
>> + if (cmds == NULL) return;
>> + read_only = 0;
>> +
>> + /* Craft kernel command line from suggested commands */
>> + for (i = 0; cmds[i] != NULL; i++) {
>> + char *old_append = append;
>> + append = xasprintf ("%s guestfs_command=%s;", append == NULL? "" : append, cmds[i]);
>> + if (old_append != NULL)
>> + free (old_append);
>> + }
> I'd loop over the commands, calculate the length of the resulting
> str...