Date: Mon, 10 Jul 2017 16:02:22 -0600 From: markham breitbach <markham@ssimicro.com> To: freebsd-questions@freebsd.org Subject: Re: Fwd: Re: Unusual Question Message-ID: <55309443-7e6a-0665-2040-8f21270d3d02@ssimicro.com> In-Reply-To: <20170710201842.GA2244@c720-r314251> References: <156b5695-1cbf-c5fa-be49-ff52da58ba0f@rogers.com> <ec00a0f6-21ca-7c40-a62b-7df60ed8071e@rogers.com> <20170710201842.GA2244@c720-r314251>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GwRimriucMVWAwXoQoeo1LtN1RWlxvcxG Content-Type: multipart/mixed; boundary="ihbOoqXjFBU6HkAsKBUFcFBUlwGeo1Sf6"; protected-headers="v1" From: markham breitbach <markham@ssimicro.com> To: freebsd-questions@freebsd.org Message-ID: <55309443-7e6a-0665-2040-8f21270d3d02@ssimicro.com> Subject: Re: Fwd: Re: Unusual Question References: <156b5695-1cbf-c5fa-be49-ff52da58ba0f@rogers.com> <ec00a0f6-21ca-7c40-a62b-7df60ed8071e@rogers.com> <20170710201842.GA2244@c720-r314251> In-Reply-To: <20170710201842.GA2244@c720-r314251> --ihbOoqXjFBU6HkAsKBUFcFBUlwGeo1Sf6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In the past, I hijiacked /boot with mfsbsd which loaded into a RAM disk, making the HDD available for whatever shennanigans I needed. This was about 5 years ago, so my memory is a bit fuzzy on the details, but I do remember heavily testing that on the bench before deploying it, as you only get one shot at something like that :) (same case, remote, unmanned sites, cost $$$K to get someone on-site) =46rom my old notes, this is exactly what we did, and since you are running entirely from RAM disk, you aren't worried about trashing your kernel or /dev. I used it to re-partition and upgrade the remotes, but if all you need to do is nuke 'em you should be fine. The build process requires you to provide the rc.conf from the target machine: * build mfsbsd image and install to remote (Your target PD). make clean make tar BASE=3D/cdrom/8.1-RELEASE mv mfsbsd-8.1-RELEASE-p8-i386.tar /tmp/target-mfs81.tar *STOP! At this point it's best to verify your image is configured properly. If you install a misconfigured image on your target there is NO way to fix it remotely.* Something simple as forgetting to make clean can bugger up the whole process since the old configs from a prior build will remain in the tmp directory. ssh root@target scp root@myhost:/tmp/target-mfs81.tar /tmp mv /boot /boot.old tar -x -C / -f /tmp/target-mfs81.tar * cross fingers * Verify HDD device node by looking at output from "mount" (should be ad2). * reboot * login (password is mfsroot) Installation[edit <https://wiki.ssimicro.com/index.php?title=3DRemote_Upgrade_FreeBSD_5= =2E2.1_to_8.3&action=3Dedit§ion=3D2>] * Nuke that sucker! dd if=3D/dev/zero of=3D/dev/ad2 bs=3D1k count=3D1 gpart create -s gpt /dev/ad2 =2E.. http://mfsbsd.vx.sk/ That might give you a good starting point though. -Markham --ihbOoqXjFBU6HkAsKBUFcFBUlwGeo1Sf6-- --GwRimriucMVWAwXoQoeo1LtN1RWlxvcxG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 Comment: GPGTools - https://gpgtools.org iEYEARECAAYFAllj+XoACgkQKQ+fauj+jf6rXACgjJbQKIbJYSpmDTvNgibb3gRO Ss0AoITVshsI6rVV+EbU88ikrRGURJq4 =r5t3 -----END PGP SIGNATURE----- --GwRimriucMVWAwXoQoeo1LtN1RWlxvcxG--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55309443-7e6a-0665-2040-8f21270d3d02>