Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2016 17:52:56 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Matthew Seaman <matthew@FreeBSD.org>
Cc:        freebsd-pkgbase@freebsd.org
Subject:   Re: [CFT] packaging the base system with pkg(8)
Message-ID:  <20160310145256.GK70809@zxy.spb.ru>
In-Reply-To: <56E182F2.9060004@freebsd.org>
References:  <20160302235429.GD75641@FreeBSD.org> <20160308124016.GA70809@zxy.spb.ru> <20160310123225.GJ70809@zxy.spb.ru> <56E182F2.9060004@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 10, 2016 at 02:21:38PM +0000, Matthew Seaman wrote:

> On 03/10/16 12:32, Slawa Olhovchenkov wrote:
> > /var/db/pkg is placed on /var and separated from beadm control
> > (zroot/ROOT). As result, switching OS install by beadm give
> > incorrectly information about installed packages. For correcting this
> > need separatly pkg database for system packages under beadm control.
> > 
> > Same for etcupdate database.
> 
> This isn't the case if you're using the default ZFS layout the installer
> provides nowadays.  Most of /var is included in the BE, with certain
> exceptions like /var/log which are overlaid on the BE.

Hmm, like ZFS layout changed from install to install.
OK, current layout also vrong:

# df -k /var/db/
Filesystem         1024-blocks   Used     Avail Capacity  Mounted on
zroot/ROOT/default   194012148 946496 193065652     0%    /
# ls -l /var/db
total 237
drwx------  2 operator  operator      10 Mar 10 17:44 entropy
drwxr-xr-x  3 root      wheel          4 Feb 11 23:35 etcupdate
drwx------  2 root      wheel          2 Feb 11 23:34 freebsd-update
drwx------  2 root      wheel          2 Feb 11 23:34 hyperv
drwx------  2 root      wheel          2 Feb 11 23:34 ipf
-r--r--r--  1 nobody    wheel     382120 Mar  5 04:15 locate.database
-rw-------  1 root      wheel      28633 Feb 11 23:35 mergemaster.mtree
-rw-r--r--  1 root      wheel         46 Feb 24 16:04 mounttab
drwx------  2 root      wheel          2 Feb 11 23:34 ntp
-rw-r--r--  1 root      wheel          7 Mar 10 16:57 ntpd.drift
drwxr-xr-x  2 root      wheel          6 Feb 28 17:08 pkg
drwxr-xr-x  2 root      wheel          2 Feb 11 23:34 ports
drwxr-xr-x  2 root      wheel          2 Feb 11 23:34 portsnap
drwxr-xr-x  2 redis     redis          3 Mar 10 17:43 redis
-rw-r--r--  1 root      wheel        256 Feb 23 14:57 statd.status
drwx--x--x  3 root      wheel          3 Nov 10 19:22 sudo
-rw-r--r--  1 root      wheel         14 Feb 12 18:48 zoneinfo

I.e. all DBMS will be lost data on OS switch, ntp lost information,
information about installing and removing non-system packages also
lost and packages too (i.e. I can't install MySQL and time later
switch back to previos OS version w/o lost of data and installed packages).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160310145256.GK70809>