beta release. still some missing features (ipxe, http/tftp and remote syncing, etc.)

This commit is contained in:
2016-12-04 02:43:49 -05:00
parent dbeee4789d
commit df172d73eb
9 changed files with 443 additions and 78 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
for i in pacman apacman;
do
if [ -f /usr/local/${i}.db.tar.xz ];
then
/usr/bin/tar -Jxf /usr/local/${i}.db.tar.xz -C /var/lib/${i}/
fi
done

View File

@@ -0,0 +1 @@
/etc/systemd/system/pacmandb.service

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Restoring Installed Packages DB
[Service]
Type=oneshot
#ExecStart=/usr/bin/tar -Jxf /usr/local/pacman.db.tar.xz -C /var/lib/pacman/
ExecStart=/etc/systemd/system/scripts/pacmandb.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View File

@@ -12,7 +12,6 @@ exec 1>/var/log/chroot_install.log 2>&1
# we need this fix before anything.
dirmngr </dev/null > /dev/null 2>&1
locale-gen
cleanPacorigs()
{
@@ -45,7 +44,9 @@ pacman -Syy
# Just in case.
cleanPacorigs
# Install some prereqs
pacman -S --noconfirm --needed base syslinux wget rsync unzip jshon sed sudo abs xmlto bc docbook-xsl git
pacman -S sed
pacman -S --noconfirm --needed base syslinux wget rsync unzip jshon sudo abs xmlto bc docbook-xsl git
locale-gen
# And get rid of files it wants to replace
cleanPacorigs
# Force update all currently installed packages in case the tarball's out of date
@@ -175,6 +176,8 @@ fi
paccache -rk0
localepurge-config
localepurge
localepurge-config
localepurge
rm -f /root/.bash_history
rm -f /root/.viminfo
rm -f /root/apacman-*.pkg.tar.xz