From owner-freebsd-current@freebsd.org Wed Jan 18 08:46:46 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43E6CCB535C; Wed, 18 Jan 2017 08:46:46 +0000 (UTC) (envelope-from daniel@digsys.bg) Received: from smtp-sofia.digsys.bg (smtp-sofia.digsys.bg [193.68.21.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-sofia.digsys.bg", Issuer "Digital Systems Operational CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BAE611885; Wed, 18 Jan 2017 08:46:45 +0000 (UTC) (envelope-from daniel@digsys.bg) Received: from [193.68.6.100] ([193.68.6.100]) (authenticated bits=0) by smtp-sofia.digsys.bg (8.15.2/8.15.2) with ESMTPSA id v0I8i4JV003149 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 18 Jan 2017 10:44:04 +0200 (EET) (envelope-from daniel@digsys.bg) From: Daniel Kalchev Message-Id: Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: ISO image: where is the CLANG compiler? Date: Wed, 18 Jan 2017 10:43:58 +0200 In-Reply-To: <20170118084502.617bfc94@freyja.zeit4.iv.bundesimmobilien.de> Cc: freebsd-current , freebsd-questions To: "O. Hartmann" References: <20170118084502.617bfc94@freyja.zeit4.iv.bundesimmobilien.de> X-Mailer: Apple Mail (2.3259) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 08:46:46 -0000 I never use the pre-built ISO images for tasks like this. Here is a = script I use to build my own USB boot drive. The drive contains the full = OS to boot and also a copy used to create a new system. I make these = boot drives from time to time, to stay current. Please note the script = is few years old (for 9-stable) and you might want to twiddle with boot = partition size if they grew. You need to have done = bouildworld/buildkernel on the host before using this script. $ cat createuboot #!/bin/sh # target USB drive to write to disk=3Dda1 # use the current date for labels today=3D`date "+%Y%m%d"` # wipe out partition data form drive # do it twice to wipe more stuff (might not be needed anymore) gpart destroy -F $disk =20 gpart create -s GPT $disk gpart destroy -F $disk =20 # GPT label the drive gpart create -s GPT $disk =20 # bootstrap partition=20 gpart add -b 34 -s 128 -t freebsd-boot $disk =20 # partition for the OS gpart add -a 4k -t freebsd-ufs -l boot$today $disk=20 # write bootstrap code gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 $disk # format file system newfs /dev/gpt/boot$today # mount file system mount -o async /dev/gpt/boot$today /mnt # install FreeBSD cd /usr/src make installworld DESTDIR=3D/mnt make distribution DESTDIR=3D/mnt make installkernel DESTDIR=3D/mnt # Create new =E2=80=9Cclean=E2=80=9D copy of FreeBSD for later use mkdir -p /mnt/root/FreeBSD make installworld DESTDIR=3D/mnt/root/FreeBSD make distribution DESTDIR=3D/mnt/root/FreeBSD make installkernel DESTDIR=3D/mnt/root/FreeBSD # copy scripts cp -r ~/scripts /mnt/root echo /dev/gpt/boot$today / ufs rw,noatime 0 1 > /mnt/etc/fstab umount /mnt You might add more customizations, such as dhclient and starting sshd in = /etc/rc.conf of the boot drive. Hope this helps=E2=80=A6 Daniel > On 18.01.2017 =D0=B3., at 9:45, O. Hartmann = wrote: >=20 > I ran into a very nasty situation where I need to = save/restore/reinstall a > in-installworld-crashed recent current. >=20 > While the /usr/obj and /usr/src as well as /etc folders are intact = (residing on > a Samsung 850 pro SSD with UFS and journaling), /boot/kernel vanished = and > most binaries in /bin and /sbin are of Null size. >=20 > I treid to rescue the system by intending to use the most recent = CURRENT ISO > image found on the snapshot server for USB drives, booted this = successfully and > then mounted the failes filesystems into the proper place (/usr/obj > and /usr/src onto USB devices /usr/obj and /usr/src respectively, the = rest goes > into /mnt). >=20 > I tried then to perform a make installworld with DESTDIR=3D/mnt set. = But I fail: > the minimalistic USB image does not have any CLANG/LLVM stuff required = for the > rescue! >=20 > Where the hell did this stuff go? Has it been ripped off due to the 1 = GB > ancient flash size?=20 >=20 > Help is needed. I've already posted to CURRENT a message, but I guess = I always > hit the wrong subject line. It seems that the key to my saviour is to = have a > flash drive with a recent CURRENT containing a cc compiler - otherwise = /usr/obj > is useless. >=20 > Kind reards, >=20 > Oliver > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"