stuff
This commit is contained in:
parent
d92266ae34
commit
df32ae0a1a
2
Makefile
2
Makefile
|
@ -28,7 +28,7 @@
|
|||
ASM=nasm
|
||||
LD=ld
|
||||
ASMFLAGS=-f elf64
|
||||
LDFLAGS= -melf_x86_64
|
||||
LDFLAGS=-melf_x86_64
|
||||
|
||||
#Folders
|
||||
MBRDIR=boot/grub
|
||||
|
|
|
@ -38,6 +38,10 @@ sudo losetup /dev/loop1 $1 -o 1048576 > /dev/null #mounting the logical partitio
|
|||
|
||||
echo ${CL2}[grub-install.sh]${NC} Mounting volume... \(mount\)${CL3}
|
||||
## Mount
|
||||
if [ -e $2/boot ]
|
||||
then
|
||||
sudo umount $2 > /dev/null
|
||||
fi
|
||||
sudo mount /dev/loop1 $2 > /dev/null
|
||||
|
||||
echo ${CL2}[grub-install.sh]${NC} Installing grub... \(grub-install\)${CL3}
|
||||
|
|
|
@ -29,8 +29,8 @@ CL3='\033[0m'
|
|||
NC='\033[1;37m'
|
||||
|
||||
set -e #exit if error
|
||||
#sleep 3
|
||||
sync
|
||||
sleep 1
|
||||
echo ${CL2}[umount.sh]${NC} Unmounting volume... \(umount\)${CL3}
|
||||
sudo umount $1
|
||||
echo ${CL2}[umount.sh]${NC} Unmounting image... \(losetup\)${CL3}
|
||||
|
|
Loading…
Reference in New Issue