Bug with makefile that can erase host MBR (3)
This commit is contained in:
parent
04fbcf9a02
commit
cb4d2cc8de
|
@ -31,8 +31,7 @@ NC='\033[1;37m'
|
|||
set -e #exit if error
|
||||
|
||||
echo ${CL2}[install-os-k.sh]${NC} Mount image... \(udisksctl\)${CL3}
|
||||
udisksctl loop-setup --offset 1048576 --no-user-interaction --file $1
|
||||
lpblock=$(/sbin/losetup -j $1 | cut -d ':' -f 1)
|
||||
lpblock=$(udisksctl loop-setup --offset 1048576 --no-user-interaction --file $1 | cut -d ' ' -f 5 | sed 's/\.//g')
|
||||
|
||||
echo ${CL2}[install-os-k.sh]${NC} Sync image... \(sync\)${CL3}
|
||||
sync
|
||||
|
@ -51,9 +50,9 @@ then
|
|||
return 13
|
||||
fi
|
||||
|
||||
echo ${CL2}[install-os-k.sh]${NC} Copying grub.cfg
|
||||
echo ${CL2}[install-os-k.sh]${NC} Copying grub.cfg to $lpblock as $mountpoint
|
||||
cp $2 $mountpoint/boot/grub/grub.cfg
|
||||
echo ${CL2}[install-os-k.sh]${NC} Copying kernel
|
||||
echo ${CL2}[install-os-k.sh]${NC} Copying kernel to $lpblock as $mountpoint
|
||||
cp $3 $mountpoint/boot/kaleid
|
||||
|
||||
echo ${CL2}[install-os-k.sh]${NC} Sync image... \(sync\)${CL3}
|
||||
|
|
Loading…
Reference in New Issue