Compare commits

...

4 Commits

Author SHA1 Message Date
ed barz c764b67c5c replace lilo with grub 2020-05-01 23:40:35 +02:00
ed barz a2e0855092 add perl with lilo 2020-05-01 20:37:36 +02:00
ed barz 0cb4222dec metal install target added 2020-05-01 19:45:01 +02:00
ed barz 485e5e84c4 mount/umount drive target added 2020-05-01 19:40:02 +02:00
2 changed files with 19 additions and 5 deletions

View File

@ -19,6 +19,12 @@ umnt-system:
umount $(MNTDIR)/dev/pts
umount $(MNTDIR)/dev
mnt-drive:
mount $(DRIVE) $(MNTDIR)
umnt-drive: umnt-system
umount $(DRIVE)
base: base-fs mnt-system
$(call vinstall,base-system)
@ -53,10 +59,18 @@ set-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
scripts:
cp-script:
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)
lilo: set-fstab cp-script
$(call vinstall,lilo,perl)
chroot $(MNTDIR) lilo-conf-mkr.sh $(BOOTLDR)
grub:
$(call vinstall,grub)
mkdir $(MNTDIR)/boot/grub
chroot $(MNTDIR) grub-mkconfig -o /boot/grub/grub.cfg
chroot $(MNTDIR) grub-install $(BOOTLDR)
metal: mnt-drive base grub

View File

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