From 17ccbc82b380bb3638f0a9ad4a87dff77f82e542 Mon Sep 17 00:00:00 2001 From: codekoch Date: Tue, 29 Jan 2019 15:47:38 +0100 Subject: [PATCH] scipts added --- scripts/.createBootDevice.sh.swp | Bin 1024 -> 0 bytes scripts/createBootDevice.sh | 28 ++++++---------------------- 2 files changed, 6 insertions(+), 22 deletions(-) delete mode 100644 scripts/.createBootDevice.sh.swp diff --git a/scripts/.createBootDevice.sh.swp b/scripts/.createBootDevice.sh.swp deleted file mode 100644 index f4385b5415f7807b4cd7c7ee897b8bc4c626eace..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 zcmYc?$V<%2S1{7E)H7y40<|0r4Efpl$r(suxR_vdx~{SyHV zrs{)L>*r*arRHSjl~(8%Cl_TFloabH7o{eaq&ns2m$;;sWhSTU6%%7OR*OajM?+vV L1h9obD7qj3ZK59G diff --git a/scripts/createBootDevice.sh b/scripts/createBootDevice.sh index e108864..8349975 100755 --- a/scripts/createBootDevice.sh +++ b/scripts/createBootDevice.sh @@ -42,6 +42,7 @@ echo "liveimagename=$liveimagename" echo "squashfilesystem=$squashfilesystem" echo "kernelfile=$kernelfile" echo "initrfsfile=$initrfsfile" +echo "device="${dev} echo "(Enter to continue/STRG-C to abort)" tput sgr0 read @@ -59,22 +60,6 @@ if [[ -z "${dev}" || ! -b ${dev} ]]; then exit 1 fi - -#if [[ "${dev}" =~ ^.*[0-9]$ ]]; then -# echo "target block device should be device, not a partition (must not end with digit)" -# exit 1 -#fi -tput setaf 11 -echo "liveimagename="$liveimagename -#echo "squashfilesystem="$squashfilesystem -echo "kernelfile="$kernelfile -echo "initrfsfile="$initrfsfile -echo "device="${dev} -#echo "Install on device ${dev}? (Enter to continue/STRG-C to abort)" -#read -tput sgr0 -#rm -rf $dirname/LIVE_BOOT/ - tput setaf 11 echo "unmounting old partitions" tput sgr0 @@ -83,15 +68,14 @@ umount ${dev}* tput setaf 11 echo "install all neccessary packages..." tput sgr0 -#apt-get install \ -# grub-pc-bin \ -# grub-efi-amd64-bin \ -# mtools +apt-get install \ + grub-pc-bin \ + grub-efi-amd64-bin \ + mtools ########### tput setaf 11 echo "creating bootable medium ..." -#read tput sgr0 export disk=${dev} @@ -219,7 +203,7 @@ tput sgr0 mkdir /mnt/usb/$liveimagename mkdir /mnt/usb/$liveimagename/modules mkdir /mnt/usb/$liveimagename/changes -#mkdir /mnt/usb/scripts +mkdir /mnt/usb/$liveimagename/scripts cp -R $squashfilesystem/$liveimagename/* /mnt/usb/$liveimagename/ #cp ./createBootDevice.sh /mnt/usb/scripts/ #cp ./saveLiveKit2Disk.sh /mnt/usb/scripts/