mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
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
|
set -e #exit if error
|
||||||
|
|
||||||
echo ${CL2}[install-os-k.sh]${NC} Mount image... \(udisksctl\)${CL3}
|
echo ${CL2}[install-os-k.sh]${NC} Mount image... \(udisksctl\)${CL3}
|
||||||
udisksctl loop-setup --offset 1048576 --no-user-interaction --file $1
|
lpblock=$(udisksctl loop-setup --offset 1048576 --no-user-interaction --file $1 | cut -d ' ' -f 5 | sed 's/\.//g')
|
||||||
lpblock=$(/sbin/losetup -j $1 | cut -d ':' -f 1)
|
|
||||||
|
|
||||||
echo ${CL2}[install-os-k.sh]${NC} Sync image... \(sync\)${CL3}
|
echo ${CL2}[install-os-k.sh]${NC} Sync image... \(sync\)${CL3}
|
||||||
sync
|
sync
|
||||||
@ -51,9 +50,9 @@ then
|
|||||||
return 13
|
return 13
|
||||||
fi
|
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
|
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
|
cp $3 $mountpoint/boot/kaleid
|
||||||
|
|
||||||
echo ${CL2}[install-os-k.sh]${NC} Sync image... \(sync\)${CL3}
|
echo ${CL2}[install-os-k.sh]${NC} Sync image... \(sync\)${CL3}
|
||||||
|
Loading…
Reference in New Issue
Block a user