Date: Wed, 10 Apr 2024 08:58:09 -0700 From: Colin Percival <cperciva@freebsd.org> To: Jessica Clarke <jrtc27@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@FreeBSD.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@FreeBSD.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@FreeBSD.org> Subject: Re: git: a1bff97300ab - main - release: Don't reuse disc1/bootonly directories Message-ID: <2f0b6e8b-83d8-420b-9f8e-86244b429e4a@freebsd.org> In-Reply-To: <6F0E287D-D46C-4AC3-BF1F-030E02989372@freebsd.org> References: <202404100329.43A3TMCp089687@gitrepo.freebsd.org> <6F0E287D-D46C-4AC3-BF1F-030E02989372@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/9/24 22:18, Jessica Clarke wrote: > On 10 Apr 2024, at 04:29, Colin Percival <cperciva@FreeBSD.org> wrote: >> +disc1-disc1 disc1-memstick: disc1 >> + mkdir ${.TARGET} >> + tar -cf- -C disc1 . | tar -xf- -C ${.TARGET} > > What’s wrong with cp -a? A couple decades of muscle memory using tar -c | tar -x. I would have used cp -Rl, but that breaks with noschg files. > Besides, shouldn’t this use -p if using tar? That's the default if we're running as root. And if we're not running as root then we get permissions/flags/etc from the METALOG, I believe? > And -f- is the same as nothing. When did that change? I thought the default was to use the tape device. -- Colin Percival FreeBSD Release Engineering Lead & EC2 platform maintainer Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2f0b6e8b-83d8-420b-9f8e-86244b429e4a>