Displaying 10 results from an estimated 10 matches for "apt_opts".
2016 Jun 07
1
[PATCH] customize: Add --uninstall operation.
...ges) in
+ match g#inspect_get_package_management root with
+ | "apk" -> sprintf "apk del %s" quoted_args
+ | "apt" ->
+ (* http://unix.stackexchange.com/questions/22820 *)
+ sprintf "
+ export DEBIAN_FRONTEND=noninteractive
+ apt_opts='-q -y -o Dpkg::Options::=--force-confnew'
+ apt-get $apt_opts update
+ apt-get $apt_opts remove %s
+ " quoted_args
+ | "dnf" -> sprintf "dnf -y remove %s" quoted_args
+ | "pisi" -> sprintf "pisi rm %s" quoted_...
2015 Mar 18
0
Re: Would this be considered a ubuntu or libguestfs issue?
...update ; apt-get -y upgrade'
It may be there is some other method based on persuading the systemd
post script not to run, or not to try talking to the init process ...
Note that --update is just a convenient shorthand for:
--run-command '
export DEBIAN_FRONTEND=noninteractive
apt_opts="-q -y -o Dpkg::Options::=--force-confnew"
apt-get $apt_opts update
apt-get $apt_opts upgrade
'
You can play around with that command until you get something that
works better.
> Errors were encountered while processing:
> /var/cache/apt/archives/libpam-systemd_2...
2015 Mar 18
2
Re: Would this be considered a ubuntu or libguestfs issue?
On 03/17/2015 05:52 PM, Richard W.M. Jones wrote:
> On Tue, Mar 17, 2015 at 11:49:02AM -0400, Lee Revell wrote:
>> virt-builder on a ubuntu guest when passed --update fails with
>> "Unable ls -al to connect to Upstart":
>>
>> https://www.nesono.com/node/368
>
> Possibly a libguestfs bug. What is the full debug output? What
> version of Ubuntu? What
2015 Aug 04
1
[PATCH] customize: Make dnf upgrade to the latest versions of packages.
...tomize_run.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index bce0aca..828c711 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -123,7 +123,7 @@ exec >>%s 2>&1
apt-get $apt_opts upgrade
"
| "dnf" ->
- sprintf "dnf -y update"
+ sprintf "dnf -y --best upgrade"
| "pisi" ->
sprintf "pisi upgrade"
| "pacman" ->
--
2.5.0
2015 Jul 28
4
[PATCH 0/2] Misc fixes
Here are two patches: one fixes the gpg-agent causing unmount to fail
after running dnf to install packages. The other ones fixes dhcpcd call
in the init program to provide it an interface name.
Cédric Bosdonnat (2):
appliance init: find NIC name for dhcpcd
Make sure gpg-agent is terminated before umount
appliance/init | 3 ++-
customize/customize_run.ml | 3 ++-
2 files
2015 Jul 28
2
Re: [PATCH 2/2] Make sure gpg-agent is terminated before umount
...ed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/customize/customize_run.ml b/customize/customize_run.ml
> index bce0aca..81b0951 100644
> --- a/customize/customize_run.ml
> +++ b/customize/customize_run.ml
> @@ -96,7 +96,8 @@ exec >>%s 2>&1
> apt-get $apt_opts install %s
> " quoted_args
> | "dnf" ->
> - sprintf "dnf -y install %s" quoted_args
> + sprintf "dnf -y install %s
> + pkill gpg-agent" quoted_args
> | "pisi" ->
> sprintf "p...
2015 Jul 28
0
[PATCH 2/2] Make sure gpg-agent is terminated before umount
...tomize_run.ml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index bce0aca..81b0951 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -96,7 +96,8 @@ exec >>%s 2>&1
apt-get $apt_opts install %s
" quoted_args
| "dnf" ->
- sprintf "dnf -y install %s" quoted_args
+ sprintf "dnf -y install %s
+ pkill gpg-agent" quoted_args
| "pisi" ->
sprintf "pisi it %s" quoted_args
|...
2015 Jul 28
0
Re: [PATCH 2/2] Make sure gpg-agent is terminated before umount
...> >
> > diff --git a/customize/customize_run.ml b/customize/customize_run.ml
> > index bce0aca..81b0951 100644
> > --- a/customize/customize_run.ml
> > +++ b/customize/customize_run.ml
> > @@ -96,7 +96,8 @@ exec >>%s 2>&1
> > apt-get $apt_opts install %s
> > " quoted_args
> > | "dnf" ->
> > - sprintf "dnf -y install %s" quoted_args
> > + sprintf "dnf -y install %s
> > + pkill gpg-agent" quoted_args
> > | "pisi" -&g...
2018 Sep 19
2
virt-customize is very slow in ubuntu 18.04/centos 7.5
...kages: cloud-init
libguestfs: trace: inspect_get_package_management "/dev/sda1"
libguestfs: trace: inspect_get_package_management = "apt"
libguestfs: trace: sh "exec >>'/tmp/builder.log' 2>&1\n\n\n\n export
DEBIAN_FRONTEND=noninteractive\n apt_opts='-q -y -o
Dpkg::Options::=--force-confnew'\n apt-get $apt_opts remove
'cloud-init'\n \n"
guestfsd: main_loop: proc 25 (aug_save) took 0.00 seconds
guestfsd: main_loop: new request, len 0xf0
commandrvf: stdout=n stderr=n flags=0x0
commandrvf: mount --bind /dev /sysro...
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge
and interconnected.
Anyway, what it does is lay the groundwork for a new tool which I'm
calling 'virt-customize'. virt-customize is virt-builder, but without
the part where it downloads a template from a respository. Just the
part where it customizes the template, that is, installing packages,
editing