tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51992





On Fri, 10 Nov 2023 at 12:04, Alistair Crooks <agc%pkgsrc.org@localhost> wrote:
[This is a PR from Paul about improvements for mksandbox. CC to tech-pkg for comments -- agc]

Finally getting around to looking at PR 51992, it includes some excellent suggestions - thanks, Paul!

The attached diff should address the first 2 parts of the PR, still working on the third part.

Does anyone have any comments on these?

Thanks,
Al

PS. I tried a lot of different ways before landing on this one, which seems to be the
cleanest way.

I should have pasted what the operations look like:

[2023/11/10 Fri 12:37:35] agc@netbsd-012 ...pkgsrc/pkgtools/mksandbox [237] > mkdir ~/sb6
[2023/11/10 Fri 12:37:47] agc@netbsd-012 ...pkgsrc/pkgtools/mksandbox [238] > sudo mksandbox ~/sb6
WARNING: LOCALPATCHES directory does not exist - ignoring
Copying the kernel
Checking package hierarchy in /usr/pkg and package database in /usr/pkg/pkgdb exist
Make and populate /home/agc/sb6/dev
Make and populate /home/agc/sb6/etc
Make empty dirs upon which to mount the null mounts
Making /tmp in /home/agc/sb6
Making /var/games in /home/agc/sb6
Making /var/run in /home/agc/sb6
Making /var/log in /home/agc/sb6
Making /var/spool/lock in /home/agc/sb6
Making /var/run/utmp in /home/agc/sb6
Making /var/run/utmpx in /home/agc/sb6
Making /var/log/wtmp in /home/agc/sb6
Making /var/log/wtmpx in /home/agc/sb6
Making /var/log/lastlog in /home/agc/sb6
Making /var/log/lastlogx in /home/agc/sb6
Mount /usr/src from /home/agc/sb6
Mount /usr/pkgsrc from /home/agc/sb6
Mounting /usr/pkgsrc/packages and /usr/pkgsrc/distfiles from /home/agc/sb6
Mount /usr/xsrc from /home/agc/sb6
Sandbox creation is now complete
[2023/11/10 Fri 12:38:02] agc@netbsd-012 ...pkgsrc/pkgtools/mksandbox [239] > sudo ~/sb6/sandbox mount
/home/agc/sb6 already mounted
[2023/11/10 Fri 12:38:22] agc@netbsd-012 ...pkgsrc/pkgtools/mksandbox [240] > sudo ~/sb6/sandbox umount
[2023/11/10 Fri 12:38:29] agc@netbsd-012 ...pkgsrc/pkgtools/mksandbox [241] > sudo ~/sb6/sandbox umount
/home/agc/sb6 not mounted
[2023/11/10 Fri 12:38:32] agc@netbsd-012 ...pkgsrc/pkgtools/mksandbox [242] > 


Home | Main Index | Thread Index | Old Index