stuff
This commit is contained in:
parent
d92266ae34
commit
df32ae0a1a
|
@ -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}
|
echo ${CL2}[grub-install.sh]${NC} Mounting volume... \(mount\)${CL3}
|
||||||
## Mount
|
## Mount
|
||||||
|
if [ -e $2/boot ]
|
||||||
|
then
|
||||||
|
sudo umount $2 > /dev/null
|
||||||
|
fi
|
||||||
sudo mount /dev/loop1 $2 > /dev/null
|
sudo mount /dev/loop1 $2 > /dev/null
|
||||||
|
|
||||||
echo ${CL2}[grub-install.sh]${NC} Installing grub... \(grub-install\)${CL3}
|
echo ${CL2}[grub-install.sh]${NC} Installing grub... \(grub-install\)${CL3}
|
||||||
|
|
|
@ -29,8 +29,8 @@ CL3='\033[0m'
|
||||||
NC='\033[1;37m'
|
NC='\033[1;37m'
|
||||||
|
|
||||||
set -e #exit if error
|
set -e #exit if error
|
||||||
#sleep 3
|
|
||||||
sync
|
sync
|
||||||
|
sleep 1
|
||||||
echo ${CL2}[umount.sh]${NC} Unmounting volume... \(umount\)${CL3}
|
echo ${CL2}[umount.sh]${NC} Unmounting volume... \(umount\)${CL3}
|
||||||
sudo umount $1
|
sudo umount $1
|
||||||
echo ${CL2}[umount.sh]${NC} Unmounting image... \(losetup\)${CL3}
|
echo ${CL2}[umount.sh]${NC} Unmounting image... \(losetup\)${CL3}
|
||||||
|
|
Loading…
Reference in New Issue