lilo target added

This commit is contained in:
ed barz 2020-05-01 19:37:06 +02:00
parent 61b0a7fcc1
commit 3d0afc2944
2 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include config.mk include config.mk
define vinstall define vinstall
export XBPS_ARCH=$(VOID_ARCH) && xbps-install -Su -R $(VOID_REPO) -r $(MNTDIR) $(1) export XBPS_ARCH=$(VOID_ARCH) && xbps-install -Suy -R $(VOID_REPO) -r $(MNTDIR) $(1)
endef endef
base-fs: base-fs:
@ -52,3 +52,11 @@ archive:
set-fstab: set-fstab:
cp files/fstab $(MNTDIR)/etc/fstab cp files/fstab $(MNTDIR)/etc/fstab
echo "$(shell file -s $(DRIVE)|tr ' ' '\n'|grep UUID) / ext4 rw,noatime,discard 0 1" >> $(MNTDIR)/etc/fstab echo "$(shell file -s $(DRIVE)|tr ' ' '\n'|grep UUID) / ext4 rw,noatime,discard 0 1" >> $(MNTDIR)/etc/fstab
scripts:
cp scripts/* $(MNTDIR)/usr/local/bin/
chmod 755 $(MNTDIR)/usr/local/bin/*
lilo: set-fstab scripts
$(call vinstall,lilo)
chroot $(MNTDIR) lilo-conf-mkr.sh $(LBOOT)

View File

@ -3,6 +3,7 @@ VOID_REPO="https://alpha.de.repo.voidlinux.org/current"
VOID_ARCHIVE=void-fs.tar.bz2 VOID_ARCHIVE=void-fs.tar.bz2
DRIVE=/dev/sdb1 DRIVE=/dev/sdb1
LBOOT=/dev/sdb
MNTDIR=/mnt MNTDIR=/mnt