From owner-freebsd-questions@freebsd.org Mon May 25 23:30:05 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D159B2CE768 for ; Mon, 25 May 2020 23:30:05 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49WCxT1t83z3c79 for ; Mon, 25 May 2020 23:30:05 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-qt1-x841.google.com with SMTP id o19so14818329qtr.10 for ; Mon, 25 May 2020 16:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yu5n0c7RomJy5ZPkat6Rawyxnqr2nngu6u96jEh9V9I=; b=jxqjeobGXYAZiWgsa9fijpfGV+ZSbqTB+LxtUuQUQvVyJwAcYa+9k0wZZjrH5rZsmV 7ZEGsY9Y+v0I7EUGHBNBEU5zqSKuSO3/zvjon22Z0wfwsYnM5g6Uq7ODJYIp2u58vTr6 FgnWbMvE6NDfUj/cGnVYBMoCRIQuOVmbmv7F353LggtFIfOgxt5QvfIkVAUJBITZ1jC6 xPaJwbp3wT4kMjeN/ALK2WETVayYwwParmeZgnxh3us+8y2TqPK/V/6LFn8SS/EzGmeE ogoYOdDfb0PCCYhW37R+SaidV3T0MSHQAjWfmON8dsUgirjWWY5s/UDvo13oAaPE0Tay KR8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Yu5n0c7RomJy5ZPkat6Rawyxnqr2nngu6u96jEh9V9I=; b=FFdlfDF0Rm8XZg5MhSJu+egjAp9LfQh7cD18GQEwCvXtBd/8MkmFp9/N2W0Uz3B6S+ JfoQVb4QZC+Mn9eyhDo/8KgK4+M5hLmpYQPmszxd0LLVbC3AhLicEKeVjPyHwyQETsWa C/cxsmq1VvWYjjRReG1gIagJogLuiBd3oOASGlZgK2yRHNThg1xyI0Zci48AALGzEu4e dJxc1MB4ddDCJt9DbQ+aoOIIOm2A3aHtaBBZTitQv871xtA6Wk71Z88NBg1tJgHliXcC aayB+KYLoCUkkCdxY6x33VnduIMZjOi6yoUuPuopO9VXt2moXk68BkUVJ2V6r4u4YA5N NaRw== X-Gm-Message-State: AOAM5318jq7d0IQ3OXyIji8P9TLtAdYLRhKI95W7fXgB7MuukPONzx4d OxhujeB4OcWRooAGJDeIGPD3s05IH+dg8Kzgo/6XJw== X-Google-Smtp-Source: ABdhPJxWWwscO1xw5/s+v1Hl4kdeFxGVIw+BO09+4d/fsoTjJFVuEoUMrV53KXjFJwpk1NhKN4VqQqtZjc4DlnWJvvM= X-Received: by 2002:aed:27c7:: with SMTP id m7mr10661930qtg.138.1590449404372; Mon, 25 May 2020 16:30:04 -0700 (PDT) MIME-Version: 1.0 References: <20200525110946.dd7440ac.freebsd@edvax.de> In-Reply-To: From: Michael Sierchio Date: Mon, 25 May 2020 16:29:28 -0700 Message-ID: Subject: Re: installation of 12.1R and 11.3R fails To: dwilde1@gmail.com Cc: Polytropon , David Christensen , FreeBSD Questions X-Rspamd-Queue-Id: 49WCxT1t83z3c79 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tenebras-com.20150623.gappssmtp.com header.s=20150623 header.b=jxqjeobG; dmarc=none; spf=none (mx1.freebsd.org: domain of kudzu@tenebras.com has no SPF policy when checking 2607:f8b0:4864:20::841) smtp.mailfrom=kudzu@tenebras.com X-Spamd-Result: default: False [-2.51 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.960]; R_DKIM_ALLOW(-0.20)[tenebras-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.02)[-1.020]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[tenebras.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[tenebras-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.23)[-0.226]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::841:from]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2020 23:30:05 -0000 This is way more complex than what you need, edit away. I've never observed this to fail. I avoid UEFI boot unless it's unavoidable. I've never observed it to fail, and I use it to build EC2 instances where I have no console access. It might seem that there are a lot of partitions, but I build security appliances. #!/bin/sh PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin DISK=3D"$1" BOOTSIZ=3D"128k" ROOTSIZ=3D"1GB" SWAPSIZ=3D"1GB" TMPSIZ=3D"1GB" VARSIZ=3D"2GB" # Why have a separate /var/tmp partition? Security. # world-writable directories (with mode 041777) should be noexec,nosuid VARTMPSIZ=3D"1GB" # you really want this to be unique for each disk PFX=3D"XG55qAUrKwbPR" ###########################################################################= ##### # Partition Disk ###########################################################################= ##### # delete any partition data already on disk offset=3D`diskinfo $DISK | awk '{ print $4 - 128 }'` dd if=3D/dev/zero of=3D/dev/$DISK bs=3D${BOOTSIZ} count=3D1 dd if=3D/dev/zero of=3D/dev/$DISK seek=3D$offset # create partition table gpart create -s gpt ${DISK} # add boot partition # p1 gpart add -t freebsd-boot -l $PFX-boot -s ${BOOTSIZ} ${DISK} # put boot code in boot partition gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ${DISK} # add root, make sectors aligned # p2 gpart add -t freebsd-ufs -l $PFX-root -a ${BOOTSIZ} -s ${ROOTSIZ} ${DISK} # add swap # p3 gpart add -t freebsd-swap -l $PFX-swap -a ${BOOTSIZ} -s ${SWAPSIZ} ${DISK} # add tmp # p4 gpart add -t freebsd-ufs -l $PFX-tmp -a ${BOOTSIZ} -s ${TMPSIZ} ${DISK} # add var # p5 gpart add -t freebsd-ufs -l $PFX-var -a ${BOOTSIZ} -s ${VARSIZ} ${DISK} # add vartmp # p6 gpart add -t freebsd-ufs -l $PFX-vartmp -a ${BOOTSIZ} -s ${VARTMPSIZ} ${DISK} # add usr (remainder of disk) # p7 gpart add -t freebsd-ufs -l $PFX-usr -a ${BOOTSIZ} ${DISK} ###########################################################################= ##### # make filesystems, mount points, mount all ###########################################################################= ##### echo "making filesystems..." # make filesystems, no softupdates on root newfs /dev/${DISK}p2 echo "mounting filesystems..." mkdir -p /mnt mount -o rw,noatime /dev/${DISK}p2 /mnt mkdir -p /mnt/tmp /mnt/var /mnt/usr chmod a+rwxt /mnt/tmp newfs -U /dev/${DISK}p4 newfs -U /dev/${DISK}p5 newfs -U /dev/${DISK}p6 newfs -U /dev/${DISK}p7 mount -o rw,nosuid,noexec /dev/${DISK}p4 /mnt/tmp mount -o rw,noatime /dev/${DISK}p5 /mnt/var mount -o rw,noatime /dev/${DISK}p7 /mnt/usr mkdir -p /mnt/var/tmp mount -o rw,nosuid,noexec /dev/${DISK}p6 /mnt/var/tmp chmod a+rwxt /mnt/tmp /mnt/var/tmp tar -xf /usr/local/src/base.txz -C /mnt tar -xf /usr/local/src/kernel.txz -C /mnt tar -xf /usr/local/src/lib32.txz -C /mnt tar -xf /usr/local/src/src.txz -C /mnt cat < /mnt/etc/fstab /dev/gpt/${PFX}-root / ufs rw,noatime 1 1 /dev/gpt/${PFX}-swap.eli none swap sw 0 0 /dev/gpt/${PFX}-tmp /tmp ufs rw,noexec,nosuid 2 2 /dev/gpt/${PFX}-var /var ufs rw,noatime 2 2 /dev/gpt/${PFX}-vartmp /var/tmp ufs rw,noexec,nosuid 2 2 /dev/gpt/${PFX}-usr /usr ufs rw,noatime 2 2 EOF cat < /mnt/etc/rc.conf fsck_y_enable=3D"YES" background_fsck=3D"YES" background_fsck_delay=3D"60" hostname=3D"name-me" # this nonsense is because I don't know what instance type I am yet # one is guaranteed to fail, the other, to succeed network_interfaces=3D"lo0 xn0 ena0 eth0 enc0" ifconfig_xn0=3D"name eth0" ifconfig_ena0=3D"name eth0" ifconfig_eth0=3D"SYNCDHCP" # do what you like here sshd_enable=3D"YES" syslogd_enable=3D"YES" syslogd_flags=3D"-sCcc" service_enable=3D"YES" firewall_enable=3D"NO" EOFF On Mon, May 25, 2020 at 9:03 AM Donald Wilde wrote: > > Sometimes a specific combination of > > > > { GPT | MBR | dedicated } x { BIOS | UEFI } > > > > can cause problems. It _should_ not, though. > > You would think, wouldn't you? When I enabled UEFI, it promptly > ignored everything except my NICs so that was out. Using Legacy BIOS > it successfully built and allowed access to my system but only with > MBR-format file system. No GPT worked, at least with > partitioning. > > > > I did have a glitch that led to a recursive stack crash, though, > > > forcing a reinstall. Updating the Handbook required me to build both > > > graphviz and vala, but neither of them would work without already > > > having a graphviz and vala on the system. Install with 'pkg install' > > > worked. > > > > It would be very strange if there was a "cyclic dependency" > > for those ports... however, using "pkg install" solves most > > problems with ports. :-) > > As I say, /usr/ports/misc/freebsd-doc-en did me in. Corrupted the > whole system. Anybody else want to play guinea pig? > > Steps to reproduce: > > 1) Update to 12-STABLE from 12.1R > 2) Update the Handbook installation (without first installing > dependencies graphics/graphviz and lang/vala) > > Reminded me of how much a 'learning experience' FreeBSD is... This > port is such an amazing, layered set of dependencies it is starkly > amazing that it can be made to work at all. > > Vala? WT[DELETED] is vala? I had to look it up! :) > > The flexibility of FreeBSD can be tiresome at times but that > configurability will come to my rescue at some point. > > Game on, and again, thanks for all the advice! :D > > -- > Don Wilde > **************************************************** > * What is the Internet of Things but a system * > * of systems including humans? * > **************************************************** > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > --=20 "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is = no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata