Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debian lxc create error

Tags:

linux

lxc

debian

I recently freshly installed Debian 8, and i want to create a linux contener based on wheezy. But when i launch the command:

sudo lxc-create -n omvctr -t debian -- -r wheezy -a amd64

I obtain this trace :

Generation complete.
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (S) of script `checkroot.sh' overrides LSB defaults (empty).
update-rc.d: using dependency based boot sequencing
update-rc.d: error: umountfs Default-Start contains no runlevels, aborting.
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `hwclock.sh' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 6 S) of script `hwclock.sh' overrides LSB defaults (0 6).
update-rc.d: using dependency based boot sequencing
update-rc.d: error: cannot find a LSB script for hwclockfirst.sh
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.

What is the problem ?

like image 462
Seb Avatar asked Apr 30 '26 03:04

Seb


1 Answers

Looks like you run into (sort of) a bug in Debian LXC package, the message:

update-rc.d: error: cannot find a LSB script for hwclockfirst.sh

is probably caused by this line:

chroot $rootfs /usr/sbin/update-rc.d -f hwclockfirst.sh disable

which is trying to disable autostart of several services inside new container, but hwclockfirst.sh service doesn't exist. It would be cleaner if the script would check if service exists and then tried to disable it.

TL;DR: no need to worry :)

like image 128
Tombart Avatar answered May 02 '26 17:05

Tombart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!