setup-alpine show errors when going through the script when executed inside a LXC container
here is my output from a alpine container on an arch linux host
alpine3:~# setup-alpine
Available keyboard layouts:
be br cf cz dk es fi gr il it la mk no pl ro se sk sr tr uk wangbe
bg by croat de dvorak et fr hu is jp lt nl pc pt ru sg slovene sv ua
us
Select keyboard layout [none]: uk
Enter system hostname (short form, e.g. ‘foo’) [alpine3]:
Do you want to do any manual network configuration? [no]
DNS domain name? (e.g ‘bar.com’) [] ip: RTNETLINK answers: File
exists
* ERROR: networking failed to start
DNS nameserver(s)? [8.8.4.4 ]
Changing password for root
New password:
Bad password: too short
Retype password:
Password for root changed by root
Which timezone are you in? (‘?’ for list) [UTC]
* WARNING: you are stopping a boot service
hostname: sethostname: Operation not permitted
* ERROR: hostname failed to start
* Setting keymap … [ ok ]
* Starting networking … * lo …ip: RTNETLINK answers: File exists
[ !! ]
* ERROR: networking failed to start
* Setting hostname …hostname: sethostname: Operation not permitted
[ !! ]
* ERROR: hostname failed to start
* ERROR: cannot start klogd as hostname would not start
* ERROR: cannot start syslog as hostname would not start
* Mounting /dev …mount: permission denied (are you root?)
[ !! ]
* ERROR: mdev-mount failed to start
* ERROR: cannot start mdev as mdev-mount would not start
* ERROR: cannot start acpid as mdev-mount would not start
* Setting hostname …hostname: sethostname: Operation not permitted
[ !! ]
* ERROR: hostname failed to start
* ERROR: cannot start klogd as hostname would not start
* ERROR: cannot start syslog as hostname would not start
* ERROR: cannot start cron as hostname would not start
* Starting networking … * lo …ip: RTNETLINK answers: File exists
[ !! ]
* ERROR: networking failed to start
HTTP/FTP proxy URL? (e.g. ‘http://proxy:8080’, or ‘none’) [none]
Available mirrors:
- nl.alpinelinux.org
- dl-2.alpinelinux.org
- dl-3.alpinelinux.org
- dl-4.alpinelinux.org
- dl-5.alpinelinux.org
- distrib-coffee.ipsl.jussieu.fr
- mirror.yandex.ru
- mirrors.gigenet.com
- repos.lax-noc.com
- repos.dfw.lax-noc.com
- repos.mia.lax-noc.com
- mirror1.hs-esslingen.de
- mirror.bpiotrowski.pl
- mirrors.centarra.com
r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositores with text editor
Enter mirror number (1-14) or URL to add (or r/f/e/done) [f]: 1
Added mirror nl.alpinelinux.org
Updating repository indexes… done.
Which SSH server? (‘openssh’, ‘dropbear’ or ‘none’) [openssh]
* service sshd added to runlevel default
* Caching service dependencies … [ ok ]
* Starting networking … * lo …ip: RTNETLINK answers: File exists
[ !! ]
* ERROR: networking failed to start
* Setting hostname …hostname: sethostname: Operation not permitted
[ !! ]
* ERROR: hostname failed to start
* Setting hostname …hostname: sethostname: Operation not permitted
[ !! ]
* ERROR: hostname failed to start
* ERROR: cannot start klogd as hostname would not start
* Setting hostname …hostname: sethostname: Operation not permitted
[ !! ]
* ERROR: hostname failed to start
* Setting hostname …hostname: sethostname: Operation not permitted
[ !! ]
* ERROR: hostname failed to start
* ERROR: cannot start klogd as hostname would not start
* ERROR: cannot start syslog as hostname would not start
* ERROR: cannot start sshd as networking would not start
Enter where to store configs (‘floppy’, ‘usb’ or ‘none’) [none]:
Enter apk cache directory (or ‘?’ or ‘none’) [/var/cache/apk]:
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/musl-1.1.2-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/busybox-1.22.1-r5.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/alpine-baselayout-2.3.1-r5.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/openrc-0.12.4-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/alpine-conf-3.0.2-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/zlib-1.2.8-r1.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/libcrypto1.0-1.0.1h-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/apk-tools-2.4.4-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/busybox-initscripts-2.2-r18.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/scanelf-0.8-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/musl-utils-1.1.2-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/libc-utils-0.5-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/alpine-keys-1.1-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/alpine-base-3.0.0-r0.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/openssh-client-6.6\_p1-r3.apk
fetch
http://repos.lax-noc.com/alpine/v3.0/main/x86\_64/openssh-6.6\_p1-r3.apk
(from redmine: issue id 3057, created on 2014-06-18, closed on 2014-06-26)
- Changesets:
- Revision 721d3e6d by Natanael Copa on 2014-06-23T09:18:15Z:
setup-alpine: support for lxc
add support for setup-alpine from within a container.
when running in lxc we skip config of:
- keymap
- hostname
- ntp
- disk
- apk cache
- lbu
ref #3057
- Revision 6b84b6a9f174e08542ca19c6e88fb29287b29016 by Natanael Copa on 2014-06-23T16:08:15Z:
main/alpine-conf: upgrade to 3.0.3
ref #3040
ref #3057
ref #3060
- Revision d7b7080246c5a526d371a83eabf074a5eec1dce2 by Natanael Copa on 2014-06-23T16:39:37Z:
main/alpine-conf: upgrade to 3.0.3
fixes #3040
fixes #3057
fixes #3060