diff --git a/README.md b/README.md index ac506bf..b89e67f 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,13 @@ Make a live CD Debian with dwagent (https://www.dwservice.net/) ### Install ``` -sudo apt install debootstrap xorriso live-build syslinux squashfs-tools isolinux +sudo apt install debootstrap xorriso live-build syslinux squashfs-tools isolinux grub-efi-amd64-bin ``` +``` +cp config.dist config +``` +Change `livework` and `os_version` to your needs. + ### Make ``` sudo ./make_iso.sh diff --git a/config.dist b/config.dist index b0bc358..f76f3d8 100755 --- a/config.dist +++ b/config.dist @@ -1,6 +1,6 @@ #!/bin/bash os_version="buster" -livework="./livework/" +livework="/opt/livework/" repositories="http://ftp.debian.org/debian/" dist_name="dwlive" iso_name="dwlive-Debian-amd64.iso" diff --git a/make_iso.sh b/make_iso.sh index eac859a..c915c7d 100755 --- a/make_iso.sh +++ b/make_iso.sh @@ -1,6 +1,6 @@ #!/bin/bash # author : Oros -# 2020-11-14 +# 2020-12-29 # # This script create a light Debian ISO which include dwagent (https://www.dwservice.net/) @@ -22,22 +22,6 @@ if [ "$EUID" -ne 0 ]; then exit 1 fi -if [ ! `which debootstrap` ]; then - apt-get install -y debootstrap -fi -if [ ! `which xorriso` ]; then - apt-get install -y xorriso -fi -if [ ! `which live-build` ]; then - apt-get install -y live-build -fi -if [ ! `which syslinux` ]; then - apt-get install -y syslinux -fi -if [ ! `which mksquashfs` ]; then - apt-get install -y squashfs-tools -fi - home_project=$(pwd) chroot_files="$home_project/chroot_files" iso_files="$home_project/iso_files" @@ -118,3 +102,4 @@ xorriso \ "${livework}/iso" echo "ISO build in ${home_project}/${iso_name}" +sudo chown $USER: "${home_project}/${iso_name}"