Bug#1074764: 3.0.14 released with fix
OpenSSL 3.0.14 is now released containing a cherry-pick of 39ea78379826fa98e8dc8c0d2b07e2c17cd68380 as https://github.com/openssl/openssl/commit/ad6cbe4b7f57a783a66a7ae883ea0d35ef5f82b6 I'd love to see a fix for this bug rolled out in Debian 12. //Anton
Bug#992351: molly-guard dracut issue
Package: molly-guard Version: 0.7.2 Hi. When using molly-guard together with dracut machine fails to poweroff/halt/reboot with a issue like: [ 67.897697] dracut Warning: Killing all remaining processes dracut Warning: Killing all remaining processes [ 67.975525] dracut Warning: Unmounted /oldroot. [ 68.002391] dracut: Disassembling device-mapper devices E: not a regular file: /lib/molly-guard/poweroff[ 68.036575] dracut Warning: poweroff failed! dracut Warning: poweroff failed! [ 68.039669] dracut Warning: dracut Warning: Generating "/run/initramfs/rdsosreport.txt" You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report. To get more debug information in the report, reboot with "rd.debug" added to the kernel command line. Dropping to debug shell. shutdown:/# This is because the /lib/molly-guard/poweroff symlink isn't available in the dracut initramfs. This can be worked around by adding this: install_items+=" /lib/molly-guard/poweroff /lib/molly-guard/reboot /lib/molly-guard/halt /lib/molly-guard/shutdown " to /etc/dracut.conf.d/20-molly-guard.conf And rebuilding the initramfs. //Anton
Bug#973053: Please update rasdaemon to 0.6.7 to fix this
This issue was fixed in http://git.infradead.org/users/mchehab/rasdaemon.git/commit/546cf713f667437fb6e283cc3dc090679eb47d08 So please, either back port that or even better pull 0.6.7 into bullseye so we can have a working ras-mc-ctl. Attached is the MVP to fix this issue. //Anton --- /usr/sbin/ras-mc-ctl.orig 2021-06-22 15:50:32.446791084 +0200 +++ /usr/sbin/ras-mc-ctl 2021-06-22 15:50:15.047428558 +0200 @@ -1179,6 +1179,7 @@ $query_handle->finish; # devlink errors +if (0) { $query = "select dev_name, count(*) from devlink_event group by dev_name"; $query_handle = $dbh->prepare($query); $query_handle->execute(); @@ -1193,7 +1194,9 @@ print "No devlink errors.\n"; } $query_handle->finish; +} +if(0) { # Disk errors $query = "select dev, count(*) from disk_errors group by dev"; $query_handle = $dbh->prepare($query); @@ -1209,6 +1212,7 @@ print "No disk errors.\n"; } $query_handle->finish; +} # MCE mce_record errors $query = "select error_msg, count(*) from mce_record group by error_msg"; @@ -1301,6 +1305,7 @@ } $query_handle->finish; +if (0) { # devlink errors $query = "select id, timestamp, bus_name, dev_name, driver_name, reporter_name, msg from devlink_event order by id"; $query_handle = $dbh->prepare($query); @@ -1322,7 +1327,9 @@ print "No devlink errors.\n\n"; } $query_handle->finish; +} +if (0) { # Disk errors $query = "select id, timestamp, dev, sector, nr_sector, error, rwbs, cmd from disk_errors order by id"; $query_handle = $dbh->prepare($query); @@ -1345,6 +1352,7 @@ print "No disk errors.\n\n"; } $query_handle->finish; +} # MCE mce_record errors $query = "select id, timestamp, mcgcap, mcgstatus, status, addr, misc, ip, tsc, walltime, cpu, cpuid, apicid, socketid, cs, bank, cpuvendor, bank_name, error_msg, mcgstatus_msg, mcistatus_msg, user_action, mc_location from mce_record order by id";
Bug#989648: clevis luks bind tpm2 issue
On 09 June, 2021 - Christoph Biedl wrote: > Control: severity 989648 important > Control: tags 989648 confirmed upstream patch > Control: fixed 989648 12-1 > > Anton Lundin wrote... > > > I'm playing around with a tpm which only supports sha256, and the clevis > > fails: > > > > # clevis luks bind -k X -d /dev/Y tpm2 '{"pcr_bank": "sha256", > > # "pcr_ids":"7"}' > > WARN: Ignore unsupported bank/algorithm: sha1(0x0004) > > ERROR: Unable to run tpm2_pcrlist > > Creating PCR hashes file failed! > > > > This is because a bug in clevis-tpm2: > > https://github.com/latchset/clevis/commit/67fc67c15fdf6fd053b261d123ae58d9e55f1991 > > > > I suggest backporting that upstream fix to get clevis-tpm2 working > > with sha256 tpm's. > > Hello, > > thanks for reporting - since there is a buster point release in ten > days, there is a chance to have this fixed very soon. However, as I > cannot access my test hardware in that short time, can you confirm that > the patch mentioned fixes your issue, and there are no other related > issues that should get handled as well? (The latter since I'd really > like to avoid having to do another bugfix upload later.) > > Since I'd need a day for the related paperwork, please reply by tomorrow > (June 10th) evening the latest. Else it would have to wait another two > or three months. I've already applied that patch locally and it fixes so I can configure pcr_bank sha256 and clevis luks tpm works on my system. So, I can confirm that the mentioned patch fixes my issue and I haven't seen any other side effects of it. I'm pretty sure it was just a typo. //Anton
Bug#989648: clevis luks bind tpm2 issue
Package: clevis-dracut Version: 11-2+deb10u1 Hi. I'm playing around with a tpm which only supports sha256, and the clevis fails: # clevis luks bind -k X -d /dev/Y tpm2 '{"pcr_bank": "sha256", # "pcr_ids":"7"}' WARN: Ignore unsupported bank/algorithm: sha1(0x0004) ERROR: Unable to run tpm2_pcrlist Creating PCR hashes file failed! This is because a bug in clevis-tpm2: https://github.com/latchset/clevis/commit/67fc67c15fdf6fd053b261d123ae58d9e55f1991 I suggest backporting that upstream fix to get clevis-tpm2 working with sha256 tpm's. //Anton
Bug#983109: Build vlc with srt support
Package: vlc Version: 3.0.12-2 >From reading the rules file it looks like #962624 was the reason to not build vlc with srt support. It looks like that bug is fixed to me, and I think it would be nice to include srt support in vlc. I took a quick stab at building my own vlc with srt support but i got stpped by: access/srt.c: In function 'srt_schedule_reconnect': access/srt.c:144:5: warning: 'srt_socket' is deprecated [-Wdeprecated-declarations] 144 | p_sys->sock = srt_socket( res->ai_family, SOCK_DGRAM, 0 ); | ^ In file included from access/srt.c:38: /usr/include/srt/srt.h:754:41: note: declared here 754 | SRT_ATR_DEPRECATED_PX SRT_API SRTSOCKET srt_socket(int, int, int) SRT_ATR_DEPRECATED; | ^~ access/srt.c:168:37: error: 'SRTO_TSBPDDELAY' undeclared (first use in this function); did you mean 'SRTO_TSBPDMODE'? 168 | srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY, | ^~~ | SRTO_TSBPDMODE So, there is some incompatibility still left there. //Anton
Bug#969361: error installing 'clevis-decrypt-http'
On 24 January, 2021 - Christoph Biedl wrote: > Now I'd like to fix this in the upcoming stable point release, just one > question: In my test setup I needed to add "--install /sbin/cryptsetup" > to the dracut invocation to make automatic unlocking pass. Did you need > that on your side as well, on can you think of other explanations? FWIW, > my test setup is already migrated to usrmerge. I looked into my fai-scripts and found: perl -pi -e 's/clevis-decrypt-http/cryptsetup/' "$target/usr/lib/dracut/modules.d/60clevis/module-setup.sh" That way I get rid of the non-existing clevis-decrypt-http and add the needed cryptsetup. //Anton
Bug#975698: Problems when nullmailer is installed via fai
On 03 December, 2020 - David Bremner wrote: > Since this postinst section is generated by debhelper, this seems like a > bug in debhelper. It also suggests that most packages using systemd-tmpfiles > will be broken when installed via FAI. I'm CC'ing Thomas in case he's > encountered this before. I tried to figure out how to report the bug against multiple packages, but didn't see it. Please feel free to pass the bug report on to whom ever might figure out the right way to solve it. //Anton
Bug#975698: Problems when nullmailer is installed via fai
Package: nullmailer Version: 1:2.2-3 I use FAI to install debian 10 machines, and some of them uses nullmailer to ship mail to a central smarthost. The generated postinst script in nullmailer has a section like: # Automatically added by dh_installinit/12 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then # In case this system is running systemd, we need to ensure that all # necessary tmpfiles (if any) are created before starting. if [ -d /run/systemd/system ] ; then systemd-tmpfiles --create nullmailer.conf >/dev/null || true fi fi # End automatically added section The problem with this is that fai doesn't use systemd during the install, but it's used when the machine reboots into the new install. That causes the /var/spool/nullmailer/trigger pipe to never be created and nullmailer doesn't work. The sysvinit script shipped with nullmailer creates the pipe if it doesn't exist, and the nullmailer systemd service should do something equivalent. //Anton
Bug#969361: error installing 'clevis-decrypt-http'
Package: clevis-dracut Version: 11-2 dracut: Generating /boot/initrd.img-4.19.0-10-amd64 dracut-install: ERROR: installing 'clevis-decrypt-http' dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.Bn3yfD/initramfs -a /etc/services clevis-decrypt-http clevis-decrypt-tang clevis-decrypt-sss /usr/lib/x86_64-linux-gnu/clevis-luks-askpass clevis-decrypt luksmeta clevis mkt emp curl jose socat This is due to the clevis-dracut in buster missing upstream commit: https://github.com/latchset/clevis/commit/1e344dbf6a60fcd2c60a4b8512be455e112d8398 I suggest backporting that upstream fix to get clevis-dracut working again. //Anton
Bug#789875: subsurface: FTBFS in experimental
experience for your Debian users, not. //Anton - Who grew tired of arguing against more FUD -- Anton Lundin+46702-161604
Bug#761809: Add crontrol for a fan3, eg. CPU
Package: macfanctld Severity: important Tags: patch On my iMac11,2 i have 3 fans that needs to be controlled, so this just extens the current code to control the 3rd fan in the same way as the first two. It has also bin reported that the same problem exists on iMac8,1 too. Without this patch, those models might overheat due to the fact that the last fan isn't spun up on thermal load. This bug report and patch was sent to the author of this code 1.5 years ago, but no reaction have happened since then, so i send this to Debian in the hope of having it included as a distro-patch so it automatically ends up on my machines without having to patch the package manually, and the patch doesn't get accidentally removed on package upgrade. //Anton -- Anton Lundin+46702-161604 From c0d40f2ebab2a630bb07d2ebf50f64d6843e753e Mon Sep 17 00:00:00 2001 From: Anton Lundin an...@dohi.se Date: Tue, 28 May 2013 16:34:09 +0200 Subject: [PATCH] Add crontrol for a fan3, eg. CPU On my iMac11,2 i have 3 fans that needs to be controlled, so this just extens the current code to control the 3rd fan in the same way as the first two. --- control.c | 71 +++ 1 file changed, 30 insertions(+), 41 deletions(-) diff --git a/control.c b/control.c index 1612983..556463d 100644 --- a/control.c +++ b/control.c @@ -72,8 +72,10 @@ struct sensor char base_path[PATH_MAX]; char fan1_min[PATH_MAX]; char fan2_min[PATH_MAX]; +char fan3_min[PATH_MAX]; char fan1_man[PATH_MAX]; char fan2_man[PATH_MAX]; +char fan3_man[PATH_MAX]; int sensor_count = 0; int fan_count = 0; @@ -165,8 +167,10 @@ void find_applesmc() sprintf(fan1_min, %s/fan1_min, base_path); sprintf(fan2_min, %s/fan2_min, base_path); + sprintf(fan3_min, %s/fan3_min, base_path); sprintf(fan1_man, %s/fan1_manual, base_path); sprintf(fan2_man, %s/fan2_manual, base_path); + sprintf(fan3_man, %s/fan3_manual, base_path); printf(Found applesmc at %s\n, base_path); } @@ -278,44 +282,25 @@ void calc_fan() void set_fan() { - char buf[16]; - - // update fan 1 - - int fd = open(fan1_min, O_WRONLY); - if(fd 0) - { - printf(Error: Can't open %s\n, fan1_min); - } - else - { - sprintf(buf, %d, fan_speed); - write(fd, buf, strlen(buf)); - close(fd); - } - - // set fan 1 manual to zero - - fd = open(fan1_man, O_WRONLY); - if(fd 0) + struct { - printf(Error: Can't open %s\n, fan1_man); + char *fan_min; + char *fan_man; } - else - { - strcpy(buf, 0); - write(fd, buf, strlen(buf)); - close(fd); - } - - // update fan 2 - - if(fan_count 1) - { - fd = open(fan2_min, O_WRONLY); + fans[] = { + {fan1_min, fan1_man}, + {fan2_min, fan2_man}, + {fan3_min, fan3_man} + }; + int fan_no; + + for (fan_no = 0; fan_no fan_count; fan_no++) { + char buf[16]; + int fd = open(fans[fan_no].fan_min, O_WRONLY); + // update fan if(fd 0) { - printf(Error: Can't open %s\n, fan2_min); + printf(Error: Can't open %s\n, fans[fan_no].fan_min); } else { @@ -324,12 +309,11 @@ void set_fan() close(fd); } - // set fan 2 manual to zero - - fd = open(fan2_man, O_WRONLY); + // set fan manual to zero + fd = open(fans[fan_no].fan_man, O_WRONLY); if(fd 0) { - printf(Error: Can't open %s\n, fan2_man); + printf(Error: Can't open %s\n, fans[fan_no].fan_man); } else { @@ -338,7 +322,6 @@ void set_fan() close(fd); } } - fflush(stdout); } @@ -383,8 +366,14 @@ void scan_sensors() } else { - fan_count = 2; - printf(Found 2 fans.\n); + result = stat(fan3_min, buf); + if (result != 0) { + fan_count = 2; + printf(Found 2 fans.\n); + } else { + fan_count = 3; + printf(Found 3 fans.\n); + } } // count number of sensors -- 2.0.0
Bug#656434: Openssh compiled with heimdal as kerberos library
On 24 February, 2012 - Colin Watson wrote: Is there no other way? Pretty off topic but anyway... I had an idea a couple of months ago to write a stub gss-library that wraps either heimdal, mit or any other gss/kerberos implementation and chooses which library to load and call based on a config file. This way you could link against that library and later on as a configuration choose which gss-library to use. I don't know of any c-libraries that does this, but on example is how the python package anyjson handles different json libraries. -- Anton Lundin+46702-161604 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#656434: Openssh compiled with heimdal as kerberos library
Package: openssh-client severity: wishlist I would love to be able to use GSSAPIClientIdentity to switch between diffrent gss identities in my KRB5CC. If openssh with Simon Wilkinson's GSS-patches ( who debian already uses ) is compiled against heimdal it works. I sugest creating separate packages for MIT-krb5 version and heimdal version of openssh, something like how libpam-krb5 vs. libpam-heimdal is handled. -- Anton Lundin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#600591: get-boot-info, netdevices_up contains all interfaces
Package: fai-client Version: 3.4.2 Tags: patch netdevices_up from get-boot-info contains all netdevices listed by ip link, and not only the ones thats actually up. A fix would be to add a grep UP to the row that detects interfaces, as sugested in patch. -- Anton Lundin+46702-161604 --- lib/get-boot-info.orig 2010-10-18 14:23:21.904952245 +0200 +++ lib/get-boot-info 2010-10-18 14:23:37.904952734 +0200 @@ -41,7 +41,7 @@ netdevice_info() { # devices that are running -netdevices_up=$(ip link | grep ^[1-9$] | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v ^lo | sort | uniq) +netdevices_up=$(ip link | grep UP | grep ^[1-9$] | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v ^lo | sort | uniq) # netdevices is the list of ethernet devices which will be used for bootpc (maybe dhcp) # if not defined, use boot messages to determine network devices [ -n $netdevices ] || netdevices=$netdevices_up pgpvJQO0jsYku.pgp Description: PGP signature
Bug#503830: Configure server support
Package: mailping Severity: wishlist Tags: patch This patch adds support for specifying witch mailserver to hand the ping-mail to. This started out because I run qmail, via tcpserver, and don't want it to listen to all ip's on the machine, thus one ip-per-tcpserver, so it doesn't listen to localhost. The other case I use it is to test the primary/secondary mailserver explicit. -- Anton Lundin+46702-161604 diff -ur mailping-0.0.4.orig/MailPing/config.py mailping-0.0.4/MailPing/config.py --- mailping-0.0.4.orig/MailPing/config.py 2004-04-16 19:36:08.0 +0200 +++ mailping-0.0.4/MailPing/config.py 2008-10-28 14:51:04.0 +0100 @@ -16,7 +16,7 @@ t = default return t -def getEmail(configdir, name, default=_NoDefault): +def getString(configdir, name, default=_NoDefault): path = os.path.join(configdir, name) try: f=file(path) diff -ur mailping-0.0.4.orig/MailPing/probe.py mailping-0.0.4/MailPing/probe.py --- mailping-0.0.4.orig/MailPing/probe.py 2004-12-03 10:13:37.0 +0100 +++ mailping-0.0.4/MailPing/probe.py2008-10-28 14:54:02.0 +0100 @@ -65,14 +65,14 @@ return msg -def send(msg, sender, recipient): +def send(msg, sender, recipient, server): s = smtplib.SMTP() -s.connect() +s.connect(server) s.sendmail(sender, [recipient], msg.as_string()) s.quit() def process(statedir, interval, curtime, -fromAddress, toAddress, adminAddress): +fromAddress, toAddress, adminAddress, server): if shouldSend(statedir, interval, curtime): ident = randomIdent() msg = makeProbe(ident=ident, @@ -81,7 +81,8 @@ adminAddress=adminAddress) send(msg, sender=fromAddress, - recipient=toAddress) + recipient=toAddress, +server=server) pending = os.path.join(statedir, 'pending') try: diff -ur mailping-0.0.4.orig/MailPing/test/test_config.py mailping-0.0.4/MailPing/test/test_config.py --- mailping-0.0.4.orig/MailPing/test/test_config.py2004-04-14 14:42:01.0 +0200 +++ mailping-0.0.4/MailPing/test/test_config.py 2008-10-28 14:51:32.0 +0100 @@ -29,18 +29,18 @@ def testEmailFail(self): self.assertRaises(config.NoSuchConfigItem, - config.getEmail, + config.getString, self.configdir, 'not-exist') def testEmailDefault(self): class Unique: pass self.assertEquals(Unique, - config.getEmail(self.configdir, 'not-exist', + config.getString(self.configdir, 'not-exist', Unique)) def testEmailOK(self): fileutil.writeFile(os.path.join(self.configdir, 'sometimes'), '42\n') -self.assertEquals(config.getEmail(self.configdir, 'sometimes'), +self.assertEquals(config.getString(self.configdir, 'sometimes'), '42') diff -ur mailping-0.0.4.orig/bin/mailping-cron mailping-0.0.4/bin/mailping-cron --- mailping-0.0.4.orig/bin/mailping-cron 2004-04-16 17:47:36.0 +0200 +++ mailping-0.0.4/bin/mailping-cron2008-10-28 14:56:10.0 +0100 @@ -35,8 +35,8 @@ interval = config.getTime(configPath, 'interval', 10*60) -fromAddress = config.getEmail(configPath, 'from', None) -toAddress = config.getEmail(configPath, 'to', None) +fromAddress = config.getString(configPath, 'from', None) +toAddress = config.getString(configPath, 'to', None) if fromAddress is None or toAddress is None: user = pwd.getpwuid(os.getuid()).pw_name host = socket.getfqdn() @@ -44,14 +44,16 @@ fromAddress = '[EMAIL PROTECTED]' % (user, host) if toAddress is None: toAddress = '[EMAIL PROTECTED]' % (user, dirname, host) -adminAddress = config.getEmail(configPath, 'admin', None) +adminAddress = config.getString(configPath, 'admin', None) + +server = config.getEmail(configPath, 'server', 'localhost') curtime = time.time() if os.path.isdir(os.path.join(statePath, 'incoming')): incoming.process(statePath) probe.process(statePath, interval, curtime, - fromAddress, toAddress, adminAddress) + fromAddress, toAddress, adminAddress, server) if __name__ == '__main__': if sys.argv[1:]: pgpzdsxs9m0Sp.pgp Description: PGP signature
Bug#503831: Munin category
Package: mailping Severity: wishlist Tags: patch This patch is trivial and makes munin put the graphs under the Mail section of graphs rather then Other. //Anton -- Anton Lundin+46702-161604 diff -ur mailping-0.0.4.orig/munin-plugins/mailping-latency mailping-0.0.4/munin-plugins/mailping-latency --- mailping-0.0.4.orig/munin-plugins/mailping-latency 2004-04-16 19:36:08.0 +0200 +++ mailping-0.0.4/munin-plugins/mailping-latency 2008-10-28 14:49:52.0 +0100 @@ -27,6 +27,7 @@ print 'graph_title Mailping latency' print 'graph_vlabel seconds' +print 'graph_category Mail' configdir = config.getConfigDir() diff -ur mailping-0.0.4.orig/munin-plugins/mailping-success mailping-0.0.4/munin-plugins/mailping-success --- mailping-0.0.4.orig/munin-plugins/mailping-success 2004-04-16 19:36:08.0 +0200 +++ mailping-0.0.4/munin-plugins/mailping-success 2008-10-28 14:50:04.0 +0100 @@ -27,6 +27,7 @@ print 'graph_title Mailping time since last success' print 'graph_vlabel seconds' +print 'graph_category Mail' configdir = config.getConfigDir() pgpHj5jBi1lg5.pgp Description: PGP signature
Bug#453017: Mounting of proc and romountopts
Package: fai-client severity: wishlist Version: 3.2.2 This patch fixes so that proc gets mounted in any case and that when stuff's gets mounted it doesn't try to touch mtab because its a symbolic link. I was to laisy to create to separate patches because they are so small. //Anton -- Anton Lundin+46702-161604 --- ../fai-trunk/bin/fai2007-11-22 22:51:39.0 +0100 +++ fai 2007-11-26 20:06:28.0 +0100 @@ -30,9 +30,9 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/lib/fai:/bin:/sbin:/usr/bin:/usr/sbin: # some variables export FAI_VERSION=FAI 3.2.2, 22 Nov 2007 stamp=/var/run/fai/FAI_INSTALLATION_IN_PROGRESS -export romountopt=-o async,noatime,nolock,ro,actimeo=1800 +export romountopt=-n -o async,noatime,nolock,ro,actimeo=1800 export STOP_ON_ERROR=9 export faimond=0 @@ -43,6 +43,13 @@ set -a # now export all variables set -o pipefail +# should happen by live-initramfs, but if it didn't mount it ourselves +if [ ! -f /proc/version ]; then +mount -t proc proc /proc +fi + +export start_seconds=$(cut -d . -f 1 /proc/uptime) + umask 022 if [ ! -d $FAI_ETC_DIR ]; then echo $FAI_ETC_DIR is not a directory @@ -228,7 +235,7 @@ export FAI_DEBOOTSTRAP=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $FAI_DEBOOTSTRAP) export FAI_DEBOOTSTRAP_OPTS=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $FAI_DEBOOTSTRAP_OPTS) -fi +fi if [ $(id -u) != 0 ]; then echo Run this program as root. @@ -249,7 +256,6 @@ renewclass=1 # always renew class list when installing mkdir -p /var/lib/discover /var/discover /etc/sysconfig fi -export start_seconds=$(cut -d . -f 1 /proc/uptime) if [ X$action = Xdirinstall -a -n $newhostname ]; then export HOSTNAME=$newhostname pgpXK8WazND9J.pgp Description: PGP signature
Bug#452444: honor ip=
Package: live-initramfs severity: wishlist Version: 1.110.7~20071118.171728 the live script doesn't care about ip= parameters like which interface to do dhcp on and so on so this patch adds code to do this. Its not nice and should probably be abstracted to a separate fuction to run in all the diffrent cases, and not just the nfs-root case. This is related to using live-initramfs in the fai-install procedure. -- Anton Lundin+46702-161604 pgp1SVmBMUQyD.pgp Description: PGP signature
Bug#452444: Acknowledgement (honor ip=)
Stupid me forgot the patch... -- Anton Lundin+46702-161604 --- live2007-11-22 23:23:30.0 +0100 +++ live.ip=2007-11-22 23:23:11.0 +0100 @@ -635,11 +635,37 @@ udevtrigger udevsettle - ipconfig ${DEVICE} | tee /netboot.config + case ${IPOPTS} in + none|off) + # Do nothing + ;; + |on|any) + # Bring up device + ipconfig ${DEVICE}| tee /netboot.config + ;; + dhcp|bootp|rarp|both) + ipconfig -c ${IPOPTS} -d ${DEVICE}| tee /netboot.config + ;; + *) + ipconfig -d $IPOPTS| tee /netboot.config + + # grab device entry from ip option + NEW_DEVICE=${IPOPTS#*:*:*:*:*:*} + if [ ${NEW_DEVICE} != ${IPOPTS} ]; then + NEW_DEVICE=${NEW_DEVICE%:*} + else + # wrong parse, possibly only a partial string + NEW_DEVICE= + fi + if [ -n ${NEW_DEVICE} ]; then + DEVICE=${NEW_DEVICE} + fi + ;; + esac # source relevant ipconfig output OLDHOSTNAME=${HOSTNAME} - . /tmp/net-${DEVICE}.conf + . /tmp/net-*.conf [ -z ${HOSTNAME} ] HOSTNAME=${OLDHOSTNAME} export HOSTNAME pgpBDMnmabiuo.pgp Description: PGP signature
Bug#452448: Versioning of udev.
Package: live-initramfs severity: wishlist Version: 1.110.7~20071118.171728 This package uses udev in the initramfs but doesn't depend on it. And if you have a old version of udev it fails. This patch adds support for one old udev version and some detection on witch to use. -- Anton Lundin+46702-161604 --- live2007-11-22 23:23:30.0 +0100 +++ live.udev 2007-11-22 23:22:17.0 +0100 @@ -632,8 +632,15 @@ modprobe -q af_packet # For DHCP - udevtrigger - udevsettle + if [ -e /sbin/udevtrigger -e /sbin/udevsettle ] ; then + /sbin/udevtrigger + /sbin/udevsettle + else + if [ -e /sbin/udevplug ] ; then + /sbin/udevplug -s -Bpci -Iclass=0x02* + /sbin/udevplug -Bpci -Iclass=0x0[69ace]* + fi + # error case? + fi ipconfig ${DEVICE} | tee /netboot.config pgpOQKMBHqI4c.pgp Description: PGP signature
Bug#443837: Make fai-chboot use TFTPROOT to figure out pxedir
Package: fai-server severity: wishlist Version: 3.2.1 This patch makes fai-chboot use the TFTPROOT declared in make-fai-nfsroot.conf to figure out the pxedir to use for the pxelinux config files. -- Anton Lundin+46702-161604 Index: bin/fai-chboot === --- bin/fai-chboot (revision 4599) +++ bin/fai-chboot (working copy) @@ -364,7 +364,6 @@ $opt_n and $opt_v = 1; $opt_v and $verbose = 1; -$pxedir = $opt_D || '/srv/tftp/fai/pxelinux.cfg'; $cfdir = $opt_C || $ENV{'FAI_ETC_DIR'} || '/etc/fai'; $opt_L and $opt_l = 1; $opt_l and lsdir(@ARGV); @@ -372,6 +371,17 @@ ($opt_S and $opt_I) die ERROR: use only one option out of -I and -S\n; #TODO: also -e, -r and -c can't be used together +# read the nfsroot variable; a little bit ugly, but it works +$nfsroot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$NFSROOT`; +chomp $nfsroot; +$nfsroot = '/srv/fai/nfsroot' unless $nfsroot; + +$tftproot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$TFTPROOT`; +chomp $tftproot; +$tftproot = '/srv/tftp/fai' unless $tftproot; + +$pxedir = $opt_D || $tftproot/pxelinux.cfg; + (-d $pxedir) || die PXE directory $pxedir does not exist.; if ($opt_d) { @@ -411,15 +421,6 @@ $action=FAI_ACTION=install; } -# read the nfsroot variable; a little bit ugly, but it works -$nfsroot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$NFSROOT`; -chomp $nfsroot; -$nfsroot = '/srv/fai/nfsroot' unless $nfsroot; - -$tftproot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$TFTPROOT`; -chomp $tftproot; -$tftproot = '/srv/tftp/fai' unless $tftproot; - $kernelsuffix = (glob $tftproot/vmlinuz*$opt_s)[-1]; $kernelsuffix=~ s/.+vmlinuz-//; pgpEtObu9zE1y.pgp Description: PGP signature
Bug#443837: Acknowledgement (Make fai-chboot use TFTPROOT to figure out pxedir)
Missed to fix call for list (-l) . here comes a updated patch. //Anton On 24 September, 2007 - Debian Bug Tracking System wrote: Thank you for the problem report you have sent regarding Debian. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Thomas Lange [EMAIL PROTECTED] If you wish to submit further information on your problem, please send it to [EMAIL PROTECTED] (and *not* to [EMAIL PROTECTED]). If you have filed this report in error and wish to close it, please send mail to [EMAIL PROTECTED] with an explanation why the bug report should be closed. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database) -- Anton Lundin+46702-161604 Index: bin/fai-chboot === --- bin/fai-chboot (revision 4599) +++ bin/fai-chboot (working copy) @@ -364,16 +364,27 @@ $opt_n and $opt_v = 1; $opt_v and $verbose = 1; -$pxedir = $opt_D || '/srv/tftp/fai/pxelinux.cfg'; $cfdir = $opt_C || $ENV{'FAI_ETC_DIR'} || '/etc/fai'; $opt_L and $opt_l = 1; -$opt_l and lsdir(@ARGV); ($opt_B and $opt_F) die ERROR: use only one option out of -B and -F\n; ($opt_S and $opt_I) die ERROR: use only one option out of -I and -S\n; #TODO: also -e, -r and -c can't be used together +# read the nfsroot variable; a little bit ugly, but it works +$nfsroot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$NFSROOT`; +chomp $nfsroot; +$nfsroot = '/srv/fai/nfsroot' unless $nfsroot; + +$tftproot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$TFTPROOT`; +chomp $tftproot; +$tftproot = '/srv/tftp/fai' unless $tftproot; + +$pxedir = $opt_D || $tftproot/pxelinux.cfg; + (-d $pxedir) || die PXE directory $pxedir does not exist.; +$opt_l and lsdir(@argv); + if ($opt_d) { die Missing host name(s). Can't disable network booting.\n unless @ARGV; foreach (@ARGV) { @@ -411,15 +422,6 @@ $action=FAI_ACTION=install; } -# read the nfsroot variable; a little bit ugly, but it works -$nfsroot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$NFSROOT`; -chomp $nfsroot; -$nfsroot = '/srv/fai/nfsroot' unless $nfsroot; - -$tftproot = `. $cfdir/make-fai-nfsroot.conf 2/dev/null; echo \$TFTPROOT`; -chomp $tftproot; -$tftproot = '/srv/tftp/fai' unless $tftproot; - $kernelsuffix = (glob $tftproot/vmlinuz*$opt_s)[-1]; $kernelsuffix=~ s/.+vmlinuz-//; pgpIyjkSdE8qT.pgp Description: PGP signature
Bug#311276: cfengine segfaults when it gets any logopt
I ran into this one when playing whith fai on ubuntu breezy, and tracked it down to the changes done to close this bug. if you run cfengine whith any long opt it segfaults. ex. /cfengine --no-lock Segmentation fault and when compiling whith the patch to support gcc 4.0 it yells: snip globals.c:312: warning: (near initialization for `OPTIONS') globals.c:312: warning: excess elements in scalar initializer globals.c:312: warning: (near initialization for `OPTIONS') globals.c:312: warning: excess elements in scalar initializer globals.c:312: warning: (near initialization for `OPTIONS') globals.c:313: warning: braces around scalar initializer globals.c:313: warning: (near initialization for `OPTIONS') globals.c:313: warning: initialization from incompatible pointer type globals.c:313: warning: excess elements in scalar initializer globals.c:313: warning: (near initialization for `OPTIONS') globals.c:313: warning: excess elements in scalar initializer /snip this need som more permanent patch to make it work whith gcc 4.0 and not segfault. -- Anton Lundin0702-161604 #!/usr/bin/perl print map chr(ord$_^16),split//,SRQPOY\',!.#\%YOPQRS; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]