Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
alpine-conf
alpine-conf
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • alpine-confalpine-conf
  • Issues
  • #3057

Closed
Open
Opened Jun 18, 2014 by Scrumpy Jack@ScrumpyJack

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:

  1. nl.alpinelinux.org
  2. dl-2.alpinelinux.org
  3. dl-3.alpinelinux.org
  4. dl-4.alpinelinux.org
  5. dl-5.alpinelinux.org
  6. distrib-coffee.ipsl.jussieu.fr
  7. mirror.yandex.ru
  8. mirrors.gigenet.com
  9. repos.lax-noc.com
  10. repos.dfw.lax-noc.com
  11. repos.mia.lax-noc.com
  12. mirror1.hs-esslingen.de
  13. mirror.bpiotrowski.pl
  14. 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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/alpine-conf#3057