diff --git a/makeanything.sh b/makeanything.sh index 940ada1..93c4c42 100755 --- a/makeanything.sh +++ b/makeanything.sh @@ -87,8 +87,11 @@ sudo debootstrap bullseye build/chroot/ $MIRROR || sudo debootstrap bullseye bui message "copy xdgmenumaker deb file into chroot" sudo cp deb/xdgmenumaker* build/chroot/tmp || error -message "copy template/install_base.sh to build/chroot/tmp/install_base.sh" -cp templates/install_base.tpl.sh build/chroot/tmp/install_base.sh || error +message "generate template/install_base.sh to build/chroot/tmp/install_base.sh" +sudo cp templates/install_base.tpl.sh build/chroot/tmp/install_base.sh || error +sudo cp templates/install_base.custompkg.tpl.sh build/chroot/tmp/ || error + + message "run install_base.sh" $CHROOTCMD /bin/bash /tmp/install_base.sh || error diff --git a/templates/install_base.custompkg.tpl.sh b/templates/install_base.custompkg.tpl.sh new file mode 100644 index 0000000..11c759d --- /dev/null +++ b/templates/install_base.custompkg.tpl.sh @@ -0,0 +1,2 @@ +apt install -y \ +audacious diff --git a/templates/install_base.tpl.sh b/templates/install_base.tpl.sh index e2e6efc..0c1936d 100644 --- a/templates/install_base.tpl.sh +++ b/templates/install_base.tpl.sh @@ -68,7 +68,6 @@ apt install -y \ xterm \ xfe \ pcmanfm \ - audacious \ htop \ host \ mc \ @@ -88,6 +87,27 @@ apt install -y \ git \ /tmp/xdgmenumaker*.deb || error +###### +#### +## +## customization can be done here +## the placeholder within '%%' gets +#### filled by makeanything.sh +###### + +message "install custom packages from templates/install_base.custompkg.tpl.sh" +. /tmp/install_base.custompkg.tpl.sh + +###### +#### it's a simple sudo +## command +## / customization End / +## +#### +###### + + + message "install linux-kernel from backports" apt install -t bullseye-backports -y linux-image-amd64