use now debian bookworm 12.0, still in testing but get release in june 2023
This commit is contained in:
parent
29ee496ddf
commit
ad8286afe6
2 changed files with 21 additions and 14 deletions
|
@ -65,6 +65,8 @@ sudo apt install \
|
||||||
coreutils \
|
coreutils \
|
||||||
pandoc || error
|
pandoc || error
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
message "start building nanodesk ${YELLOW}${VERSION}${ENDCOLOR}"
|
message "start building nanodesk ${YELLOW}${VERSION}${ENDCOLOR}"
|
||||||
|
|
||||||
read -p "press [enter] to continue"
|
read -p "press [enter] to continue"
|
||||||
|
@ -72,15 +74,20 @@ read -p "press [enter] to continue"
|
||||||
### stuff begins here
|
### stuff begins here
|
||||||
|
|
||||||
message "creating build directories"
|
message "creating build directories"
|
||||||
for dir in $(echo build/{staging/{EFI/BOOT,boot/grub/x86_64-efi,isolinux,live}tmp,chroot,nanodesk-files})
|
for dir in $(echo build/{staging/{EFI/BOOT,boot/grub/x86_64-efi,isolinux,live},tmp,chroot,nanodesk-files})
|
||||||
do
|
do
|
||||||
message "$dir"
|
message "$dir"
|
||||||
test -d $dir || mkdir -p $dir
|
test -d $dir || mkdir -p $dir
|
||||||
done
|
done
|
||||||
|
|
||||||
### i have the problem, that fakechroot will not work atm. in ubuntu 22.04 i get libc6 version mismatch errors. so we run it direct as root. not my favorite, but works for now.
|
### i have the problem, that fakechroot will not work atm. in ubuntu 22.04 i get libc6 version mismatch errors. so we run it direct as root. not my favorite, but works for now.
|
||||||
message "running debootstrap with mirror $MIRROR"
|
#DEBOOTSTRAP_SUITE="bullseye"
|
||||||
sudo debootstrap bullseye build/chroot/ $MIRROR || sudo debootstrap bullseye build/chroot/ $MIRROR
|
#DEBOOTSTRAP_OPTS="--extra-suites=bullseye-backports,bullseye-updates --components=main,contrib,non-free"
|
||||||
|
DEBOOTSTRAP_SUITE="bookworm"
|
||||||
|
DEBOOTSTRAP_OPTS="--extra-suites=${DEBOOTSTRAP_SUITE}-updates --components=main,contrib,non-free,non-free-firmware"
|
||||||
|
|
||||||
|
message "running debootstrap $DEBOOTSTRAP_OPTS $DEBOOTSTRAP_SUITE $MIRROR"
|
||||||
|
sudo debootstrap ${DEBOOTSTRAP_OPTS} ${DEBOOTSTRAP_SUITE} build/chroot/ $MIRROR || sudo debootstrap ${DEBOOTSTRAP_OPTS} ${DEBOOTSTRAP_SUITE} build/chroot/ $MIRROR
|
||||||
|
|
||||||
message "copy xdgmenumaker deb file into chroot"
|
message "copy xdgmenumaker deb file into chroot"
|
||||||
sudo cp deb/xdgmenumaker* build/chroot/tmp || error
|
sudo cp deb/xdgmenumaker* build/chroot/tmp || error
|
||||||
|
@ -101,10 +108,10 @@ $CHROOTCMD /usr/bin/rm -Rf /tmp/* || error
|
||||||
### copy nanodesk files in nanodesk-files/ to build/nanodesk-files/ so we can make changes there,
|
### copy nanodesk files in nanodesk-files/ to build/nanodesk-files/ so we can make changes there,
|
||||||
### like generate version file and convert .md to .html in usr/share/docs/nanodesk
|
### like generate version file and convert .md to .html in usr/share/docs/nanodesk
|
||||||
message "copy nanodesk-files/ to build/nanodesk-files/"
|
message "copy nanodesk-files/ to build/nanodesk-files/"
|
||||||
sudo cp -r nanodesk-files/* build/nanodesk-files/
|
cp -r nanodesk-files/* build/nanodesk-files/
|
||||||
|
|
||||||
message "write nanodesk version $VERSION into build/nanodesk-files/usr/share/nanodesk/version"
|
message "write nanodesk version $VERSION into build/nanodesk-files/usr/share/nanodesk/version"
|
||||||
echo $VERSION > nanodesk-files/usr/share/nanodesk/version
|
echo $VERSION > build/nanodesk-files/usr/share/nanodesk/version
|
||||||
|
|
||||||
message "convert .md files in build/nanodesk-files/usr/doc/nanodesk/ to .html"
|
message "convert .md files in build/nanodesk-files/usr/doc/nanodesk/ to .html"
|
||||||
for md in $(find build/nanodesk-files/usr/share/doc/nanodesk/ -name "*.md")
|
for md in $(find build/nanodesk-files/usr/share/doc/nanodesk/ -name "*.md")
|
||||||
|
|
|
@ -39,11 +39,11 @@ echo nanodesk > /etc/hostname
|
||||||
DEBIAN_FRONTEND=noninteractive
|
DEBIAN_FRONTEND=noninteractive
|
||||||
export DEBIAN_FRONTEND
|
export DEBIAN_FRONTEND
|
||||||
|
|
||||||
message "activate contrib and non-free repositories"
|
##message "activate contrib and non-free repositories"
|
||||||
sed -i 's/main$/main contrib non-free/g' /etc/apt/sources.list || error
|
##sed -i 's/main$/main contrib non-free/g' /etc/apt/sources.list || error
|
||||||
|
##
|
||||||
message "activate backports repository"
|
##message "activate backports repository"
|
||||||
sed 's/bullseye/bullseye-backports/g' /etc/apt/sources.list > /etc/apt/sources.list.d/bullseye-backports.list || error
|
##sed 's/bullseye/bullseye-backports/g' /etc/apt/sources.list > /etc/apt/sources.list.d/bullseye-backports.list || error
|
||||||
|
|
||||||
message "apt update"
|
message "apt update"
|
||||||
apt update || error
|
apt update || error
|
||||||
|
@ -51,6 +51,7 @@ apt update || error
|
||||||
### packages
|
### packages
|
||||||
message "install nanodesk base packages"
|
message "install nanodesk base packages"
|
||||||
apt install -y \
|
apt install -y \
|
||||||
|
linux-image-amd64 \
|
||||||
live-boot \
|
live-boot \
|
||||||
dialog \
|
dialog \
|
||||||
sudo \
|
sudo \
|
||||||
|
@ -71,6 +72,7 @@ apt install -y \
|
||||||
xfonts-75dpi \
|
xfonts-75dpi \
|
||||||
xfonts-100dpi \
|
xfonts-100dpi \
|
||||||
x11-apps \
|
x11-apps \
|
||||||
|
x11-utils \
|
||||||
xterm \
|
xterm \
|
||||||
xdm \
|
xdm \
|
||||||
jwm \
|
jwm \
|
||||||
|
@ -116,10 +118,8 @@ message "install custom packages from templates/install_base.custompkg.tpl.sh"
|
||||||
####
|
####
|
||||||
######
|
######
|
||||||
|
|
||||||
|
#message "install linux-kernel from backports"
|
||||||
|
#apt install -t bullseye-backports -y linux-image-amd64
|
||||||
message "install linux-kernel from backports"
|
|
||||||
apt install -t bullseye-backports -y linux-image-amd64
|
|
||||||
|
|
||||||
message "set hostname in hosts"
|
message "set hostname in hosts"
|
||||||
sed -i 's/localhost/localhost nanodesk/g' /etc/hosts
|
sed -i 's/localhost/localhost nanodesk/g' /etc/hosts
|
||||||
|
|
Loading…
Add table
Reference in a new issue