Skip to content
This repository was archived by the owner on May 12, 2023. It is now read-only.

Commit 355d13b

Browse files
committed
Update system after extracting rootfs
1 parent bfea370 commit 355d13b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ rootfs: base.tar.xz
3939
@echo -e '\e[1;31mBuilding rootfs...\e[m'
4040
mkdir rootfs
4141
sudo tar -xpf base.tar.xz -C rootfs
42+
sudo cp -f /etc/resolv.conf rootfs/etc/resolv.conf
43+
sudo chroot rootfs /sbin/xbps-install --sync --update --yes
44+
sudo rm -rf `sudo find rootfs/var/cache/xbps/ -type f`
45+
sudo rm rootfs/etc/resolv.conf
4246
sudo chmod +x rootfs
4347

4448
base.tar.xz:

0 commit comments

Comments
 (0)