[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: How do I disable the openssh build hook?



Hello again.

I have studied the code, and it seems the option was removed in this commit:
http://live.debian.net/gitweb/?p=live-build.git;a=commitdiff;h=1bcc4494831e3b55b6f8f83f2a2fa4de2b77fc9d
There some leftover in chroot_hooks through (http://live.debian.net/gitweb/?p=live-build.git;a=blob;f=scripts/build/chroot_hooks;hb=HEAD)

But as you can see in config, you can't do anything about it: http://live.debian.net/gitweb/?p=live-build.git;a=blob;f=scripts/build/config;hb=HEAD#l1320


The best seems to be a either a empty "0160-remove-openssh-server-host-keys.hook.chroot" file, or remove it in a hook not starting with a number (not sure your hooks is running before the openssh hook, depends on LC_COLLATE)..

Regards Kristian



Date: Wed, 3 Jun 2015 18:04:35 +0200
From: orest@paranoici.org
To: klausenbusk@hotmail.com; debian-live@lists.debian.org
Subject: Re: How do I disable the openssh build hook?

All the variables you set before executing command lb build so for example

(root):# export LB_CHROOT_HOOKS="some value"
(root):# lb build

or

(root):# LB_CHROOT_HOOKS="some value" lb build

Please can somebody correct me if I am wrong.

Cheers

W dniu 03.06.2015 o 16:51, Kristian Klausen pisze:
Hello

At the moment I do "dpkg-reconfigure openssh-server" (in a hook) to generate the OpenSSH host key.

But it will make more sense if I could disable the "0160-remove-openssh-server-host-keys.hook.chroot" hook.
I can disable the openssh hooks which happens at boot with "live-config.nocomponents=openssh-server", but I don't see a smiler option for live-build?

Search on the malinglist I stumbled upon:
https://lists.debian.org/debian-live/2011/08/msg00185.html
https://lists.debian.org/debian-live/2011/08/msg00189.html

But where should I set the LB_CHROOT_HOOKS  variable? and what is the initialized value? Searching with grep i can't find the initialized value..

[2015-06-03 10:51:27] lb build --version
4.0.3-1
On debian jessie.

Regards Kristian Klausen
 		 	   		  


Reply to: