[Bug 208565] sysutils/firstboot-pkgs: fails to install list if any already installed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 6 07:05:07 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208565

            Bug ID: 208565
           Summary: sysutils/firstboot-pkgs: fails to install list if any
                    already installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cperciva at FreeBSD.org
          Reporter: freebsd at geoffgarside.co.uk
          Assignee: cperciva at FreeBSD.org
             Flags: maintainer-feedback?(cperciva at FreeBSD.org)

When given a set of packages to install on first boot, if any one of the
packages already exists on the host then none of them will be installed.

This can be seen with the "freebsd/FreeBSD-10.3-RELEASE" VMware vagrant box. In
this image the following configuration is given

    firstboot_pkgs_enable=YES
    firstboot_pkgs_list="sudo rsync open-vm-tools-nox11"

but the image already has the open-vm-tools-nox11 package installed. Because of
this the other packages are never installed.

    $ env ASSUME_ALWAYS_YES=YES pkg install sudo rsync open-vm-tools-nox11
    Updating FreeBSD repository catalogue...
    FreeBSD repository is up-to-date.
    All repositories are up-to-date.

In order to get the packages to be installed, you must use the -f flag to force
pkg to install them, this also re-installs the existing packages.

The "freebsd/FreeBSD-10.3-RELEASE" package list after boot is

    firstboot-freebsd-update-1.2   Update the system using freebsd-update when
it first boots
    firstboot-pkgs-1.4             Install packages when the system first boots
    gettext-runtime-0.19.6         GNU gettext runtime libraries and programs
    glib-2.44.1_3                  Some useful routines of C programming
(current stable version)
    icu-55.1                       International Components for Unicode (from
IBM)
    indexinfo-0.2.4                Utility to regenerate the GNU info page
index
    libdnet-1.12_1                 Simple interface to low level networking
routines
    libffi-3.2.1                   Foreign Function Interface
    libiconv-1.14_9                Character set conversion library
    open-vm-tools-nox11-1280544_12,1 Open VMware tools for FreeBSD VMware
guests
    pcre-8.38                      Perl Compatible Regular Expressions library
    perl5-5.20.3_8                 Practical Extraction and Report Language
    pkg-1.7.1                      Package manager
    python27-2.7.11_1              Interpreted object-oriented programming
language

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list