Another way to make a live iso that tends to be easier is with refractasnapshot. It makes a copy of your installed system and packs it into a bootable live-iso. You could build a system in a VM, and when you get it the way you want it, make the snapshot. It's in the devuan repo.
https://refracta.org/docs/readme.refractasnapshot.txt
Anyhow i will put this on the backburner for now until its out of alpha stage.
]]>#!/bin/sh
cd custom-packages
dpkg -i *_all.deb *_amd64.deb
(*) Chrooting to execute 'install-custpackages' ...
chmod: cannot access '/home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/install-custpackages': No such file or directory
I have to go out and can't poke around in this right now. My build failed on trying to install firmware. And every time the build fails, I have to reboot my computer. I am not a happy camper right now. Maybe later I'll tar up the version of live-sdk that I'm actually using to build the official isos and you can download it.
One more item: live-sdk is getting a complete re-write. I don't know the current status, but I intend to get in on that effort.
]]>now have issue with custom packages ?
(*) copying blend-specific debs into /home/user1/live-sdk/extra/custom-packages
'/home/user1/live-sdk/blends/devuan-minimal-live/beowulf//custom_debs/memtest86+_5.01-3_amd64.deb' -> '/home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/extra_packages/memtest86+_5.01-3_amd64.deb'
'/home/user1/live-sdk/blends/devuan-minimal-live/beowulf//custom_debs/memtest86+_5.01-3_i386.deb' -> '/home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/extra_packages/memtest86+_5.01-3_i386.deb'
'/home/user1/live-sdk/blends/devuan-minimal-live/beowulf//custom_debs/setnet_0.4+devuan1_all.deb' -> '/home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/extra_packages/setnet_0.4+devuan1_all.deb'
#!/bin/sh
cd custom-packages
dpkg -i *_all.deb *_amd64.deb
apt-get -f install
cd - >/dev/null
rm -rf custom-packages
. mounted sys
. mounted proc
. mounted dev
. mounted devpts
(*) Chrooting to execute 'dpkgdivert' ...
+ exec
Adding 'local diversion of /usr/sbin/invoke-rc.d to /usr/sbin/invoke-rc.d.chroot'
sed: can't read /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/install-custpackages: No such file or directory
(*) Chrooting to execute 'install-custpackages' ...
chmod: cannot access '/home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/install-custpackages': No such file or directory
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[W] called in: mounted devpts
[W] called in: Chrooting to execute 'install-custpackages' ...
[E] error reported, operation aborted.
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[W] called in: mounted devpts
[W] called in: Chrooting to execute 'install-custpackages' ...
[E] error reported, operation aborted.
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[W] called in: mounted devpts
[W] called in: Chrooting to execute 'install-custpackages' ...
echo "${username}:${userpass} | chpasswd || exit 1
echo "${username}:${userpass}" | chpasswd || exit 1
Watch out for the arch setting. I found it in live-sdk/config and it's also in my blend config. Both were set to amd64. It does not work in the blend config file. It must be set in live-sdk/config. I just tested that.
I don't have tmp/devuan-amd64-build/bootstrap/ after the build is done. It all gets wrapped up in stage3 and stage4 tarballs. Unpacking the tarballs does not restore the bootstrap dir.
FWIW, I ran this version of the live-sdk yesterday and made a desktop-live iso that works. I'm running a minimal-live build now, after adding the missing quote. Will be back soon with results.
]]>so ive run another build_iso_dist and added my packages to the devuan-minimal-live blend extra_packages with arch edit you suggested (arch="amd64" in blends/devuan-minimal-live/config), see here for this config https://pastebin.com/raw/xucLLkPc .
See here for the live-sdk/blends/devuan-minimal-live/beowulf config https://pastebin.com/raw/05KEnxMN, these are all that i have edited throughout this and it seems to have downloaded and installed all the required package sets.
Ive got to this point but have run into an error im unsure how to fix?
(*) Chrooting to execute 'dpkgdivert' ...
+ exec
Removing 'local diversion of /usr/sbin/invoke-rc.d to /usr/sbin/invoke-rc.d.chroot'
. umounted devpts
. umounted dev
. umounted proc
. umounted sys
(*) Creating bootstrap cpio archive: /home/user1/live-sdk/tmp/bootstrap-devuan-amd64-stage4.cpio.gz
. Abandon all hope, ye who enter here
4047938 blocks
(*) executing devuan-minimal-live preinst
. mounted sys
. mounted proc
. mounted dev
. mounted devpts
(*) Chrooting to execute 'dpkgdivert' ...
+ exec
Adding 'local diversion of /usr/sbin/invoke-rc.d to /usr/sbin/invoke-rc.d.chroot'
(*) Chrooting to execute 'add-user' ...
+ exec
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[W] called in: mounted devpts
[W] called in: Chrooting to execute 'add-user' ...
[E] error reported, operation aborted.
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[W] called in: mounted devpts
[W] called in: Chrooting to execute 'add-user' ...
[E] error reported, operation aborted.
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[E] error in: chroot-script /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
[W] called in: mounted devpts
[W] called in: Chrooting to execute 'add-user' ...
there is no dpkgdivert to be called in /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/dpkgdivert
the add-user.log says this in /home/user1/live-sdk/tmp/devuan-amd64-build/bootstrap/?
+ export LANG=C
+ export LC_ALL=C
+ export DEBIAN_FRONTEND=noninteractive
+ useradd -s /bin/bash -m devuan
/add-user: 8: /add-user: Syntax error: Unterminated quoted string
So the add-user error is just missing the quotes around echo "devuan:devuan i presume ?
#!/bin/sh
set -x ; exec 2>/add-user.log
export LANG=C
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
useradd -s /bin/bash -m "devuan" || exit 1
echo "devuan:devuan | chpasswd || exit 1
For the package sets, edit where the sets are defined to add or comment/remove packages, and you can exclude whole sets in the stanza you posted that shows which sets to include by commenting them out.
I'm not sure what commands to use on the version you're running. I've been using an older version to build isos. Changes were made since I last interacted with the git repo (on git.devuan.org). And I've had some trouble using the newer version. However, I can reproduce your error with the new version.
You need to define the arch in your blend config file instead of on the command line. So put
arch="amd64"
or
arch="i386"
in blends/devuan-minimal-live/config
and use these commands (as root):
zsh -f
source sdk
load devuan devuan-minimal-live
build_iso_dist
One more thing. If you build for i386 you might want to look in lib/libdevuansdk/zlibs/kernel if you want to change it from plain 686 kernel to the 686-pae kernel.
Here's the one on devuan's git: https://git.devuan.org/devuan-sdk/live-sdk
]]>No blend specified but built iso with most of the packages from the blend except for the extra packages list, am i missing a command here or something else ?
~ $ cd live-sdk/
~/live-sdk $ zsh -f
laptop% source sdk
(*) live-sdk 1.0 loaded
livesdk@laptop % load devuan amd64 devuan-minimal-live
. libdevuansdk v2.0 loaded
. No blend specified
livesdk@laptop %
https://github.com/parazyd/live-sdk
oops never mind seems you need to specify the sets here in the blend config?
### now we include all the package sets
base_packages+=(
$minimal_base_packages
$minimal_admin_packages
$minimal_editors_packages
$minimal_net_packages
$minimal_prod_packages
$minimal_devel_packages
$minimal_games_packages
$minimal_a11y_packages
$minimal_media_packages
$minimal_misc_packages
)
Make a beowulf directory like the ascii directory here: https://git.devuan.org/sdk/live-sdk/tre … sktop-live
Replace devuan-desktop-live/config with config from the tarball. Replace the .blend file with the one in the tarball.
Copy config.beo from the tarball to beowulf/config
Or just compare the changes from the ascii files to the beowulf ones and use that as a guideline for modifying your own configs.
CAVEAT: I haven't looked at the instructions at the beginning of this thead in a long time. Some details have changed. If you follow the install directions on the git repo, it should work with minimal effort. https://git.devuan.org/sdk/live-sdk
(I have done that recently.)
I read from page one that (old instructions) "Special instructions for ascii (testing)" Add to the blend config file:
release="ascii"
Would you just add beowulf ? and is that all that needs to be done to get packages pulled in from testing?
]]>$ diff config.original config
27c27
< gtomb_url="git://git.parazyd.cf/gtomb.git"
---
> gtomb_url="https://git.parazyd.org/gtomb"
35c35
< musl_version="v1.1.18"
---
> musl_version="v1.1.19"
38c38,39
< tbb_version="7.0.11"
---
> tbb_url="https://dist.torproject.org/torbrowser/"
> tbb_version=$(curl -s "$tbb_url"|sed -n 's#^.*>\([0-9.]*\)/<.*$#\1#p'|tail -n 1)
43c44,50
< tbb_url="https://www.torproject.org/dist/torbrowser/${tbb_version}/tor-browser-linux${aa}-${tbb_version}_en-US.tar.xz"
---
> tbb_url="$tbb_url/${tbb_version}/tor-browser-linux${aa}-${tbb_version}_en-US.tar.xz"
>
> base_packages+=(
> build-essential
> bc
> gpgv-static
> )
45a53,56
> joe
> bash-completion
> gpgv-static
>
52d62
< awesome
109,110c119
< abiword
< abiword-plugin-grammar
---
>
Now some things still silently fail. There is an messge in the console ouput somewhere, that initrd was not found, but no entry in any logfile can be found. The resulting iso cannot boot without initrd.
These are the 2 blocks from console output that contain error messages:
cd /home/entwicklung/security/heads/build-system/initramfs/build/bin && /bin/busybox --install -s .
wget -c https://deb.debian.org/debian/pool/main/g/gnupg2/gpgv-static_2.2.3-1_amd64.deb
--2018-03-21 09:55:26-- https://deb.debian.org/debian/pool/main/g/gnupg2/gpgv-static_2.2.3-1_amd64.deb
Resolving deb.debian.org (deb.debian.org)... 5.153.231.4, 130.89.148.14, 149.20.4.15, ...
Connecting to deb.debian.org (deb.debian.org)|5.153.231.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cdn-aws.deb.debian.org/debian/pool/main/g/gnupg2/gpgv-static_2.2.3-1_amd64.deb [following]
--2018-03-21 09:55:27-- https://cdn-aws.deb.debian.org/debian/pool/main/g/gnupg2/gpgv-static_2.2.3-1_amd64.deb
Resolving cdn-aws.deb.debian.org (cdn-aws.deb.debian.org)... 13.32.28.74, 13.32.28.201, 13.32.28.21, ...
Connecting to cdn-aws.deb.debian.org (cdn-aws.deb.debian.org)|13.32.28.74|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-03-21 09:55:27 ERROR 404: Not Found.
Makefile:40: recipe for target 'gnupg' failed
make: *** [gnupg] Error 8
[E] error in: iso_setup_isolinux (override)
[W] called in: iso_setup_isolinux (override)
[W] called in: umounted sys
[W] called in: setting up isolinux
[E] error reported, operation aborted.
cp: cannot stat '/home/entwicklung/security/heads/build-system/live-sdk/../initramfs/initramfs.cpio.gz': No such file or directory
[E] error in: iso_setup_isolinux (override)
[W] called in: iso_setup_isolinux (override)
[W] called in: umounted sys
[W] called in: setting up isolinux
[E] error reported, operation aborted.
[D] iso_write_isolinux_cfg (override)
(*) writing isolinux configuration
Cloning into 'rootfs-overlay'...
remote: Counting objects: 1352, done.
remote: Total 1352 (delta 0), reused 0 (delta 0), pack-reused 1352
Receiving objects: 100% (1352/1352), 10.86 MiB | 263.00 KiB/s, done.
Resolving deltas: 100% (536/536), done.
mv: cannot move 'rootfs-overlay/.git' to './.git': Directory not empty
[E] error in: devprocsys umount /home/entwicklung/security/heads/build-system/live-sdk/tmp/devuan-amd64-build/bootstrap
[W] called in: devprocsys umount /home/entwicklung/security/heads/build-system/live-sdk/tmp/devuan-amd64-build/bootstrap
[W] called in: umounted sys
[W] called in: grabbing rootfs-overlay
[E] error reported, operation aborted.