From ac7bfa73209e6e59d9718cd9f4199b09c0230d61 Mon Sep 17 00:00:00 2001 From: r00t Date: Sun, 26 Mar 2017 12:30:56 -0400 Subject: [PATCH] minor fix for installing packages in live system --- bdisk/bchroot.py | 9 +++++---- docs/TODO | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bdisk/bchroot.py b/bdisk/bchroot.py index 051a9b8..269cad4 100755 --- a/bdisk/bchroot.py +++ b/bdisk/bchroot.py @@ -138,11 +138,12 @@ def chrootTrim(build): humanize.naturalsize( os.path.getsize(tarball)), dbdir)) - for d in ('etc/pacman.d/gnupg', 'var/empty/.gnupg'): - if os.path.isdir('{0}/root.{1}/{2}'.format(chrootdir, a, d)): - shutil.rmtree('{0}/root.{1}/{2}'.format(chrootdir, a, d)) + #for d in ('etc/pacman.d/gnupg', 'var/empty/.gnupg'): # actually, we should probably keep these. + # they don't take much space, and it's a PITA to pacman-key --init && pacman-key --populate again on boot. + # if os.path.isdir('{0}/root.{1}/{2}'.format(chrootdir, a, d)): + # shutil.rmtree('{0}/root.{1}/{2}'.format(chrootdir, a, d)) # TODO: move the self-cleanup in pre-build.sh to here. - delme = ['/root/.gnupg', + delme = [#'/root/.gnupg', # see above '/root/.bash_history', #'/var/log/chroot_install.log', # disable for now. maybe always disable if debug is enabled? TODO. '/.git', diff --git a/docs/TODO b/docs/TODO index bcd4bf5..e1391a2 100644 --- a/docs/TODO +++ b/docs/TODO @@ -1,5 +1,6 @@ ## Missing v2.x functionality ## -i_am_a_racecar optimizations +- different distro guests (debian, etc.)- https://stackoverflow.com/questions/2349991/python-how-to-import-other-python-files/20749411#20749411 -incorporate this into the manual? -TFTP configs generated for pxelinux -fix the branding, etc. on ipxe. :( @@ -47,4 +48,4 @@ --note that iPXE VESAFB console is not (yet) supported in EFI, so this is on hold. check into this to see if it has changed. -include WinMTR, build Mac OS X MTR for dist/tools on CD -include pre-compiled LibreCrypt for opening LUKS parts on Windows (https://github.com/t-d-k/LibreCrypt) ---curl -s https://raw.githubusercontent.com/t-d-k/LibreCrypt/master/README.md | egrep 'InstallLibreCrypt_v[A-Za-z0-9\.]*.exe' | cut -f2 -d'"' \ No newline at end of file +--curl -s https://raw.githubusercontent.com/t-d-k/LibreCrypt/master/README.md | egrep 'InstallLibreCrypt_v[A-Za-z0-9\.]*.exe' | cut -f2 -d'"'