You are not logged in.
Ged, if you have a local repository that's complete enough to contain all you need, I assume that it would work. I think you just need to edit the debootstrap command to point to your own repo. Look in zlibs/bootstrap.
There are several possible locations of isohdpfx.bin. Maybe we should be finding it instead of hard-coding the location. Look at zlibs/iso.
Offline
Hello and thanks for the reply.
I'll take a look at that debootstrap command but it isn't a local mirror, it's a caching proxy which uses apt-cacher-ng.
Not sure I'd want to set up a full mirror just for this.
(Yeah, it took me a while to find isohdpfx.bin.
Offline
Hello again,
modifying the debootstrap command only affected the package sources for stage 1, so in the end I modified the value of 'mirror' in lib/libdevuansdk/config (which means that source.list gets the same value so I'll need to fix that up near the end of the build). I've burned a CD and it boots and lets me log in OK, so more or less everything seems to be working. Now I need to think a bit more about the packages I need to install.
The image doesn't seem to be bootable directly from a USB stick, just wondering if there's an easy way to achieve that?
Offline
It should be bootable from a usb stick. Image the stick with dd like you would with any other isohybrid. That's what isohdpfx.bin is for. What are you getting when you try to boot the usb?
Offline
Hmmmm.... I did image the stick as normal. When I try to boot from it the machine just boots from the hard drive, like the stick wasn't there, but I can mount the USB stick partition after the machine has booted from the HDD. The same machine boots fine from the same image on a CD.
Well as long as I know it's supposed to boot I can investigate why it isn't working. It might be something weird with the machine's firmware or something. I'll let you know what I find. Thanks again for the help.
Offline
F12, F8, ESC or some other key might get you to a boot device menu where you can choose the usb.
Offline
yeah, I did all that. It offers to boot on the stick and then doesn't.
Don't worry, I'll work something out thanks.
Offline
Hello and thanks for the reply.
I'll take a look at that debootstrap command but it isn't a local mirror, it's a caching proxy which uses apt-cacher-ng.
Not sure I'd want to set up a full mirror just for this.(Yeah, it took me a while to find isohdpfx.bin.
Hi All
I use apt-cacher as well. Been using it for live-build for some years.
_MIRROR_BINARY="http://localhost:3142/packages.devuan.org/merged"
_MIRROR_BINARY="http://localhost:3142/ftp.us.debian.org/debian/"
Offline
I use apt-cacher as well. Been using it for live-build for some years.
_MIRROR_BINARY="http://localhost:3142/packages.devuan.org/merged"
_MIRROR_BINARY="http://localhost:3142/ftp.us.debian.org/debian/"
Hi Ozi, thanks for the tip, but I think I'm missing something...
laptop3:~/live-sdk$ > grep -r MIRROR_BINARY
laptop3:~/live-sdk$ >
To use my local cache I set
mirror="http://192.168.44.47:3142/auto.mirror.devuan.org/merged"
in live-sdk/lib/libdevuansdk/config
Is there some doc somewhere explaining your use of _MIRROR_BINARY?
Offline
I briefly played with apt-cacher-ng, but ended up dumping it. I am now using squid-deb-proxy instead.
Phil
Offline
Ozi wrote:I use apt-cacher as well. Been using it for live-build for some years.
_MIRROR_BINARY="http://localhost:3142/packages.devuan.org/merged"
_MIRROR_BINARY="http://localhost:3142/ftp.us.debian.org/debian/"Hi Ozi, thanks for the tip, but I think I'm missing something...
laptop3:~/live-sdk$ > grep -r MIRROR_BINARY laptop3:~/live-sdk$ >
To use my local cache I set
mirror="http://192.168.44.47:3142/auto.mirror.devuan.org/merged"
in live-sdk/lib/libdevuansdk/config
Is there some doc somewhere explaining your use of _MIRROR_BINARY?
_MIRROR_BINARY is from my live-build setups.
And my point was that to wire up apt-cacher for live-sdk the url for apt-cacher would be something like : "http://localhost:3142/packages.devuan.org/merged" which would go in libdevuansdk config.
Offline
I briefly played with apt-cacher-ng, but ended up dumping it. I am now using squid-deb-proxy instead.
Phil
apt-cacher-ng takes a little work to configure it to work for devuan. It doesn't by default come with config for devuan.
@phil - what do you find better with squid-deb-proxy?
Offline
Ged wrote:Is there some doc somewhere explaining your use of _MIRROR_BINARY?
_MIRROR_BINARY is from my live-build setups.
Ah, my mistake. I took your "live-build" to mean "live-sdk".
... for live-sdk the url for apt-cacher would be something like : "http://localhost:3142/packages.devuan.org/merged" which would go in libdevuansdk config.
Sure, as per my post that's more or less what I'm doing with live-sdk.
============
In your reply to pcalvert you wrote
... apt-cacher-ng takes a little work to configure it to work for devuan. It doesn't by default come with config for devuan.
That makes me nervous that I might have missed something. Do you mind posting a complete Devuan apt config?
Offline
@phil - what do you find better with squid-deb-proxy?
For me, apt-cacher-ng was flakey, and one of the features simply didn't work. When I was doing some research on the matter I found comments by others who had similar experiences with apt-cacher-ng. That research also led me to squid-deb-proxy, which I decided to try. After I figured out how to configure it, it has been working without problems. I did have a problem with it once, but it was probably my fault -- I installed it on a fresh system and it refused to start up using the old cache. After I deleted the old cache and let it create a new one, everything was fine.
Also, getting live-build to work with squid-deb-proxy was simple.
From my /etc/live/build.conf file:
# The line below is for squid-deb-proxy.
LB_APT_HTTP_PROXY="http://localhost:8000/"
LB_MIRROR_BOOTSTRAP="http://packages.devuan.org/merged"
LB_MIRROR_CHROOT_SECURITY="http://packages.devuan.org/merged"
LB_MIRROR_BINARY="http://packages.devuan.org/merged"
LB_MIRROR_BINARY_SECURITY="http://packages.devuan.org/merged"
Phil
Offline
Hi Phil
That's great!
And that should avoid the problem I had of "http://localhost:3142/packages.devuan.org/merged" ending up in /etc/apt/sources.list!
Thanks
ozi
Offline
Here are some more config changes I had to make to get squid-deb-proxy to work.
Path: /etc/squid-deb-proxy/mirror-dstdomain.acl
# mirror-dstdomain.conf
#
# network destinations that are allowed by this cache
# the default mirror names on debian are ftp[0-9]*\.[a-z]+\.debian\.org
# but that would require (slow) regexp matching, so for now we allow
# www.debian.org and friends here too
.debian.org
cdn.debian.net
http.debian.net
httpredir.debian.org
# default mirrors
#ftp.debian.org
security.debian.org
# additional destinations can be added to the directory:
# /etc/squid-deb-proxy/mirror-dstdomain.acl.d
Path: /etc/squid-deb-proxy/mirror-dstdomain.acl.d/20-extra [a new file]
# Devuan mirrors
.devuan.org
us.mirror.devuan.org
# Grml mirrors
.grml.org
deb.grml.org
# U.S. Debian mirrors
debian.gtisc.gatech.edu
ftp-chi.osuosl.org
mirror-0.csail.mit.edu
ftp-nyc.osuosl.org
Adjust the above to fit your situation.
Phil
Offline
I am trying to build a basic i386 iso, no blend, but fail with the following errors:
tee: /path/to/devuan_sdk/live-sdk/tmp/devuan-i386-build/bootstrap/etc/apt/sources.list: No such file or directory
...
chroot: failed to run command '/dpkgdivert': No such file or directory
...
chroot: failed to run command '/postunpack': No such file or directory
...
The application dpkg-divert is installed on my base system which is Uubuntu 16.04. I have not been able to figure out what postunpack is, both ducky and google have not been sufficiently friendly to me on this occasion.
What do I need to do to resolve these errors?
Thanks!
Offline
postunpack is an error log generated by lib/libdevuansdk/zlibs/bootstrap.
I don't know if anyone has tried live-sdk on anything other than devuan. There are references to devaun in /usr/share/debootstrap/scripts/jessie in the devuan version of debootstrap, but I doubt you'll find them in debian or ubuntu. Maybe it's possible to install devuan debootstrap in ubuntu, and if so, maybe it will work. I don't know.
Offline
I have a problem building heads: build_kernel_amd64 gets the kernel successful, but then breaks when trying to compile it. The logfile says quite surprisingly that "make" is missing in chrooted build system. So, how can I add make to the build system?
Offline
Samhain, you need to install build-essential. Add it to one of the package lists so that it's installed before the kernel compile happens.
Offline
I just started all over again, cloned the heads build-system. "build-essential" is in the list "extra_packages=(" in "build-system/config", so I assume it should be present. Anyway, the build process breaks when trying to compile the kernel.
The console says:
(*) chrooting to execute dpkgdivert...
+ exec
Adding 'local diversion of /usr/sbin/invoke-rc.d to /usr/sbin/invoke-rc.d.chroot'
(*) chrooting to execute install-linux-heads...
+ exec
[E] error in: chroot-script dpkgdivert
[W] called in: chroot-script dpkgdivert
[W] called in: mounted devpts
[W] called in: chrooting to execute install-linux-heads...
[E] error reported, operation aborted.
[D] dpkgdivert off /home/heads/build-system/live-sdk/tmp/devuan-amd64-build/bootstrap
[D] chroot-script dpkgdivert
(*) chrooting to execute dpkgdivert...
log/install-linux-heads.log says:
+ export DEBIAN_FRONTEND=noninteractive
+ cd /usr/src/linux-heads
+ make oldconfig
/install-linux-heads: 4: /install-linux-heads: make: not found
+ exit 1
What can I try next?
Last edited by samhain (2018-03-18 19:56:28)
Offline
Ok, kind of success: As you said, "build-essential" is missing in the chroot-environment. I had to install "build-essentiall" and "bc" into [...]/heads/build-system/live-sdk/tmp/devuan-amd64-build/bootstrap, now the kernel is beeing compiled. But where do I need to place these 2 packages, so that the buidscripts will actually add them to the build system?
Offline
It needs to be in the base_packages or core_packages list to be included in the bootstrap tarball. You can add it to your blend config. Make sure you use "+=" and not just "=". You want to add to the main list, not replace it.
base_packages+=(
build-essential
bc
)
* `core_packages`
this array holds the core packages that will be installed in the bootstrap
process.* `base_packages`
this array holds the base packages that will be installed later in the
bootstrap process.
Offline
Thanks, that helped for the kernel. But I still cannot build a valid heads iso, so I question myself when was the last time somebody actually tried to build that beast from git?
Offline
I don't know. Last time I built a heads iso was a year ago. Last time I built a plain devuan iso with live-sdk was a couple weeks ago.
Are you getting any error messages on-screen or in the logs? Is it creating an iso that doesn't work, or not making an iso at all? Is filesystem.squashfs getting created? (look in live-sdk/tmp/devuan-whatever/binary/live/)
Offline