From nobody Wed Apr 12 03:51:53 2023 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Px80l3S35z4596f for ; Wed, 12 Apr 2023 03:52:07 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Px80l1k6vz4F7C for ; Wed, 12 Apr 2023 03:52:07 +0000 (UTC) (envelope-from crb@chrisbowman.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x629.google.com with SMTP id ke16so9998955plb.6 for ; Tue, 11 Apr 2023 20:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisbowman-com.20210112.gappssmtp.com; s=20210112; t=1681271525; x=1683863525; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PFfNPe0pqFOD6Hys9v/+zza1fDI3BcJONHxXUIYXcPI=; b=t0odJ5emFL/aBquog7deLYquoxXwsbEKJjsuG02zQiaGgV8Uq+aE+d11FsEHMtpWj4 CqKfPisCuT71V4QGLWQBBxbhFJz4cYtQ6swH5yUCv4eP+u0+Q8/G1ZCEye1NaxMKFA2F gB3SGOWglRxpOlP4GhtIzqScrKadBAW+MQ2rtT4VKG9nIynLYVkzIwhM+8S2foQzIqxF hqPxBKiiKVn1S+zBo5saDATQHE9LQu/hUcvY1TL4m3hrf0v9QFl8VLtN3xbCqcFdKENw ejkqOsyW1nSs8QFhtQvtwrvhTPPux6+8PsdPF0yUf7AyC3NtY5qsGcUFih5JcRGVtKX1 m+BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681271525; x=1683863525; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PFfNPe0pqFOD6Hys9v/+zza1fDI3BcJONHxXUIYXcPI=; b=F1RZhNa7PSp04lGGGUR9nYxrdV/RBxMLFjO82W3Bqj9UdMiZj7pSN4xfsMcfbtD0Ot HaYjIhs/vg0deAjzfmI2e4EvgFSXxm0CsBZ09Pe0h5ye9XzpwamD70fpUeTHLF2xe4/D 8NGxd6Q48Fod91obn6n298LZP3ABclhnDLzlvxwruU1wsPIHzbD9qzpn7OJ1a5VJdLIm aUbnVjoa4ldNz+DwPTvTvNRdDjIcNAHa95RiVy0BYiNaC/zZ9tRwqdxteGchvbuWAcZM qGGyFP+IeVYAGZ3W/r2oJNG53aLRDOsbiufoVVRidBR/k0S8o+9Nyomcr9TyogfJA7W2 /fhw== X-Gm-Message-State: AAQBX9cKS2es5JqKInvXCLtieKjoa5h/NarEnpnOgknntnO3UZIDPh4c yiFzQKAkNXxOw+0DrhHSwAtWow== X-Google-Smtp-Source: AKy350Z+JiFigYPMzd1x4zmMGCCOBEAgxxweg6fayQ5woulwjZsvf0uA32e6CcguaAgn+B873MsBzw== X-Received: by 2002:a17:90b:380f:b0:237:30ef:e593 with SMTP id mq15-20020a17090b380f00b0023730efe593mr19316128pjb.24.1681271524882; Tue, 11 Apr 2023 20:52:04 -0700 (PDT) Received: from smtpclient.apple ([2600:1700:5430:10b1:4ce3:bf44:f929:f0f9]) by smtp.gmail.com with ESMTPSA id o12-20020a1709026b0c00b00199203a4fa3sm10358810plk.203.2023.04.11.20.52.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2023 20:52:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: make installworld -DNO_ROOT From: Christopher Bowman In-Reply-To: Date: Tue, 11 Apr 2023 20:51:53 -0700 Cc: hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <3E739B8C-9416-43B4-B8C7-6671FF5C028C@chrisbowman.com> References: To: Brooks Davis X-Mailer: Apple Mail (2.3731.500.231) X-Rspamd-Queue-Id: 4Px80l1k6vz4F7C X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N > On Apr 11, 2023, at 7:10 AM, Brooks Davis wrote: >=20 > These warnings are annoying, but mostly harmless. A stalled > and seemingly not quite right review to address the issue is at > https://reviews.freebsd.org/D30990 >=20 > -- Brooks >=20 > On Mon, Apr 10, 2023 at 12:00:45AM -0700, Christopher Bowman wrote: >> Id like to build some images and I???d like do that as an ordinary = user NOT as root >>=20 >> I???m experimenting with ???make installworld -DNO_ROOT = TARGET_ARCH=3Darmv7??? >>=20 >> When I do that or ???make distribution -DNO_ROOT = TARGET_ARCH=3Darmv7??? >>=20 >> I get the following error messages during the make run: >>=20 >> make[4] warning: /etc: Permission denied. >> make[4] warning: /lib: Permission denied. >> make[5] warning: /lib/geom: Permission denied. >> make[4] warning: /libexec: Permission denied. >> make[4] warning: /bin: Permission denied. >> make[4] warning: /rescue: Permission denied. >> make[4] warning: /sbin: Permission denied. >> make[4] warning: /etc: Permission denied. >> make[2] warning: /etc: Permission denied. >> make[3] warning: /etc/gss: Permission denied. >> make[3] warning: /etc/mtree: Permission denied. >> make[3] warning: /lib: Permission denied. >> make[4] warning: /lib/geom: Permission denied. >> make[3] warning: /libexec: Permission denied. >> make[3] warning: /bin: Permission denied. >> make[3] warning: /rescue: Permission denied. >> make[3] warning: /sbin: Permission denied. >> make[3] warning: /etc: Permission denied. >>=20 >> I think as a results either the recursive makes are failing or not = doing all they are supposed to. >>=20 >> It???s possible I???m using -DNO_ROOT wrong but if anyone has some = suggestions about what???s happening that would be very helpful. >>=20 >> In the alternative I???m open to suggestions as to how to debug the = hugs set of make invocations. I find reading and debug make files hard = enough but on huge treee like this with all the invocations and = arguments I???m kind lost as to even which command within the make files = are causing this. >>=20 >> Thanks >> Christopher It=E2=80=99s possible but I=E2=80=99m not so sure. I=E2=80=99m trying to build images and I=E2=80=99m using -DNO_ROOT to = create a file system image without root privileges. Then later I use = makefs to build the filesystems images passing the METALOG file from the = installworld/installkernel/distribution so that the files get the = correct permission in the built filesystem. My METLOG file doesn=E2=80=99t have an entry for /etc/fstab so even = though I had build such a file and place it in my image, it doesn=E2=80=99= t get copied into my filesystem by makefs because there is no METLOG = entry. So I=E2=80=99m of two minds. On the one hand, this is probably = ok for /boot/loader.conf which I add to my image, after all it=E2=80=99s = not strictly necessary that /boot/loader.conf exist in all systems, but = I=E2=80=99m not getting an /etc/fstab even though I hand create the = proper fstab because I have no METALOG entry for it, and this is = absolutely an essential file. What I=E2=80=99m not sure of is how this = is supposed to work and I=E2=80=99d appreciate anyones feedback. 1. I suppose it=E2=80=99s possible that fstab indeed isn=E2=80=99t = created by make distribution and so I should hand create a METALOG entry = for it, but this leaves me wondering what other files are important but = also don=E2=80=99t get copied because they don=E2=80=99t have a METALOG = entry. Perhaps there is a switch to makefs that would warn me of files = in the image without METALOG entries? 2. The /etc/fstab should have a METALOG entry and I=E2=80=99m doing = something wrong, perhaps I=E2=80=99m missing a switch or options = somewhere. In any even I welcome any feedback and thank you for the response = you=E2=80=99ve already sent. Regards, Christopher=09