Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 16:17:04 -0200
From:      "Dr. Rolf Jansen" <rj@obsigna.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: updating armv6 snapshots
Message-ID:  <A8C385BD-7752-4A3D-925F-0C882E906CFD@obsigna.com>
In-Reply-To: <CAKE2PDs1hNhbYJ86b2jceWXd_pBNb=C_3K_djSBDUCMd6qzJSg@mail.gmail.com>
References:  <CAKE2PDs1hNhbYJ86b2jceWXd_pBNb=C_3K_djSBDUCMd6qzJSg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Am 11.01.2017 um 14:57 schrieb jungle Boogie =
<jungleboogie0@gmail.com>:
>=20
> Hi All,
>=20
> This question has likely been covered before but I don't see it listed
> on the wiki:
> https://wiki.freebsd.org/FreeBSD/arm/BeagleBoneBlack
>=20
> If I'm on 12.0-CURRENT #0 r311461 on my beaglebone, what's the best
> way to get to the latest snapshot?
>=20
> I don't see src files for armv6 here:
> https://download.freebsd.org/ftp/snapshots/arm/armv6/
>=20
> So does that mean the options are:
> a) svnlite in /usr/src and do the build (any tips on making it =
faster?)
> b) save configs and install new ISO snapshot?
>=20
> If b is the best option, all installed applications are lost. Is it
> possible to save apps off the beaglebone and put back in respective
> places on bbone's new ISO image, or would that cause ABI/API issues?
>=20
> c) stick with r311461
> d) anything else?
>=20
> Thanks for any input!


I did already once the following:

1. installed sysutils/clone from the ports
   # pkg install clone

2. dd'd the latest snapshot onto a USB memstick
   and mounted /dev/da0s2a to /mnt

3. (optional) saved the changed settings in /etc and /boot

4. used several clone commands in synch mode for replacing
   the old snapshot installation by the new one using the
   following shell script

#!/bin/sh

clone -s -x local /mnt/usr /usr
clone -s /mnt/sbin /sbin
clone -s /mnt/rescue /rescue
clone -s /mnt/libexec /libexec
clone -s /mnt/lib /lib
clone -s /mnt/bin /bin
clone -s -x loader.conf /mnt/boot /boot
clone -s -x =
fstab:group:localtime:master.passwd:motd:passwd:pwd.db:rc.conf:rc.local:re=
solv.conf:spwd.db:ssh:ssl /mnt /etc

The above script operates on the live system, and replacing the old =
installation by the new snapshot takes less then 10 min.

You would need to check the exclude lists (-x) whether all your changed =
settings are listed.

/dev, /home, /media, /mnt, /proc, /root, /tmp, /usr/local, /var are left =
untouched.

If you feel more comfortable then first clone your boot device and do a =
test upgrade on the clone.

If you do a major upgrade (e.g. 11-CURRENT to 12-CURRENT) then you need =
to rebuild the ports, of course.

Best regards

Rolf=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A8C385BD-7752-4A3D-925F-0C882E906CFD>