Talk:Alpine setup scripts: Difference between revisions

From Alpine Linux
(Blanked the page)
Tag: Blanking
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Automate Alpine Linux installation ==


I am trying to achieve unattended Alpine Linux installation. I went through the Alpine automatic installation guide via setup-alpine script, but when I follow this guide there are many manual interventions are needed during the installation!
one during writing the root user name, another time when creating the answer file (setup-alpine -c answerfileName), editing the answer file, calling the actual installation command (setup-alpine -f answerfileName) and reset the root password. Is there any way to include the answer file inside the ISO image and select the root user by default before starting the installation and set its password as well after the installation is done (something similar to the kickstart file in the debian distros) ?<br>
<!-- Template:Unsigned --><span class="autosigned" style="font-size:85%;">—&nbsp;Preceding unsigned comments added by [[User:Khaled.elgohary|Khaled.elgohary ]] ([[User talk:Khaled.elgohary #top|talk]] • [[Special:Contributions/Khaled.elgohary |contribs]]) 12:20, 7 February 2022‎</span>
The [[https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-alpine| setup-alpine]] section currently gives instructions that may appear to be contradictory:
"17. if installation mode selected during setup-disk was "data" instead of "sys", then: setup-lbu [/media/sdb1]
18. if installation mode selected during setup-disk was "data" instead of "sys", then: setup-apkcache [/media/sdb1/cache | none]"
One of these presumably refers to the case for "sys", but which?
---
Both are correct and refer to the same situation.  If you set up a disk for "data", then the installation is "run-from-RAM", but with a disk for "data".  In that case, you want to use lbu to keep the in-RAM configs on the boot media.  You also want apkcache to be able to update the apks on the boot media.  - nangel

Latest revision as of 11:10, 19 August 2024

Automate Alpine Linux installation

I am trying to achieve unattended Alpine Linux installation. I went through the Alpine automatic installation guide via setup-alpine script, but when I follow this guide there are many manual interventions are needed during the installation! one during writing the root user name, another time when creating the answer file (setup-alpine -c answerfileName), editing the answer file, calling the actual installation command (setup-alpine -f answerfileName) and reset the root password. Is there any way to include the answer file inside the ISO image and select the root user by default before starting the installation and set its password as well after the installation is done (something similar to the kickstart file in the debian distros) ?
— Preceding unsigned comments added by Khaled.elgohary (talkcontribs) 12:20, 7 February 2022‎

The [setup-alpine] section currently gives instructions that may appear to be contradictory:

"17. if installation mode selected during setup-disk was "data" instead of "sys", then: setup-lbu [/media/sdb1]

18. if installation mode selected during setup-disk was "data" instead of "sys", then: setup-apkcache [/media/sdb1/cache | none]"

One of these presumably refers to the case for "sys", but which?


---

Both are correct and refer to the same situation. If you set up a disk for "data", then the installation is "run-from-RAM", but with a disk for "data". In that case, you want to use lbu to keep the in-RAM configs on the boot media. You also want apkcache to be able to update the apks on the boot media. - nangel