beta release. still some missing features (ipxe, http/tftp and remote syncing, etc.)
This commit is contained in:
9
extra/pre-build.d/etc/systemd/scripts/pacmandb.sh
Executable file
9
extra/pre-build.d/etc/systemd/scripts/pacmandb.sh
Executable 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
|
||||
@@ -0,0 +1 @@
|
||||
/etc/systemd/system/pacmandb.service
|
||||
11
extra/pre-build.d/etc/systemd/system/pacmandb.service
Normal file
11
extra/pre-build.d/etc/systemd/system/pacmandb.service
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user