Created
October 13, 2020 19:55
-
-
Save jfqd/03146ff38b5e3f8da6bc65579330c38d to your computer and use it in GitHub Desktop.
Create Debian-10 lx-brand image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download and install a fresh debian-10 iso in VirtualBox. After boot and login run: | |
``` | |
apt-get install git debootstrap curl | |
git clone https://github.com/ass-a2s/debian-lx-brand-image-builder.git | |
cd debian-lx-brand-image-builder | |
mkdir /mnt/chroot | |
./install -r buster -d /mnt/chroot -m http://ftp2.de.debian.org/debian/ -i debian-10 -p "Debian 10 lx-brand" -D "Debian 10 64-bit lx-brand image." -u https://docs.joyent.com/images/container-native-linux | |
curl -s -u "$USER:$PASSWORD" -T ./debian-10-20200713.tar.gz https://nextcloud.example.com/remote.php/dav/files/user/debian-10-20200713.tar.gz | |
``` | |
Then download the image in a SmartOS global zone: | |
``` | |
cd /opt/mibe/images | |
curl -LO https://nextcloud.example.com/index.php/s/eYFN7gBxsgFSiaM/download | |
mv download debian-10-20200713.tar.gz | |
git clone https://github.com/ass-a2s/debian-lx-brand-image-builder.git | |
cd debian-lx-brand-image-builder | |
./create-lx-image -t /opt/mibe/images/debian-10-20200713.tar.gz -k 4.19.0 -m 20190912T024836Z -i debian-10 -d "Debian 10 64-bit lx-brand image." -u https://docs.joyent.com/images/container-native-linux | |
``` | |
Now we can install the image: | |
``` | |
imgadm install -m debian-10-20200713.json -f debian-10-20200713.zfs.gz | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment