~alpine/users

2 2

[alpine-user] setup-alpine cannot save configs

Details
Message ID
<ea-mime-5c0af704-8d4-190215e0@www-5.netcourrier.com>
Sender timestamp
1544222468
DKIM signature
missing
Download raw message
Hello,

    

Alpine (3.8.1) in frugal install works fine and fast; but I meet a

problem saving configs: when setup-alpine asks

Enter where to store configs ('floppy', 'sda2', 'usb' or 'none') [sda2]:

no error message but any alpine.apkovl.tar.gz file is created on sda2 :(

Trying to create a configuration file with

setup-alpine -c /media/sda2/apkovl.conf

returns

touch: /media/sda2/apkovl.conf: Read-only filesystem

Cannot touch file /media/sda2/apkovl.conf

/sbin/setup-alpine: line 115: can't create /media/sda2/apkovl.conf:

Read-only filesystem



And yet when setup-alpine prompts me to create a cache

Enter apk cache directory (or '?' or 'none') [/media/sda2/cache]:

it creates correctly the /cache folder, and apk saves downloaded packages

in it.



Is there a chance that setup-alpine is modified to do it? (or maybe it is

only a bug?)

Alpine would be perfect if it was possible to save the config on a HD

partition.



Thanks.



Ceel
Chloe Kudryavtsev <toast@toastin.space>
Details
Message ID
<d937d151-d451-d000-78c9-f56401f23bf2@toastin.space>
In-Reply-To
<ea-mime-5c0af704-8d4-190215e0@www-5.netcourrier.com> (view parent)
Sender timestamp
1544235897
DKIM signature
missing
Download raw message
On 12/7/2018 5:41 PM, ceel@netcourrier.com wrote:
> Enter where to store configs ('floppy', 'sda2', 'usb' or 'none') [sda2]:
> no error message but any alpine.apkovl.tar.gz file is created on sda2 :(

The utility in question is setup-lbu.
There are lots of issues with it right now.
/media/ filesystems are currently mounted ro by default - you can 
remount it rw on your own (mount /media/sda2 -o remount,rw) and then run 
`setup-lbu sda2`.

> Trying to create a configuration file with
> setup-alpine -c /media/sda2/apkovl.conf

`setup-alpine -c` is for something entirely different (an answer file).
These have a good chance of being abandoned relatively soon too, so 
please avoid using that.

> And yet when setup-alpine prompts me to create a cache
> Enter apk cache directory (or '?' or 'none') [/media/sda2/cache]:
> it creates correctly the /cache folder, and apk saves downloaded packages
> in it.

The utility in question here is setup-apkcache.
This utility does indeed perform the remount necessary (around line 150 
or so).

> Is there a chance that setup-alpine is modified to do it? (or maybe it is
> only a bug?)
> Alpine would be perfect if it was possible to save the config on a HD
> partition.

Based on your prior description, there seems to be a misunderstanding 
unto what a "config" is.
apkovl is a tarball (from /) of various files that will be unpacked into 
the tmpfs during bootup (assuming no other root is found, and the apkovl 
is found by nlplug-findfs).

Either way, I would definitely call this a bug.
However, alpine-conf (the package that contains all of the 
above-mentioned utilities) is currently a mess.
Ideally, it should be fixed as a whole.
I would try to take up the task, but currently I'm busy writing the 
documentation (that you will be able to refer to to find out more about 
lbu, apkovls and similar such things).


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Details
Message ID
<ea-mime-5c0edfcc-121f-23df0931@www-5.netcourrier.com>
In-Reply-To
<d937d151-d451-d000-78c9-f56401f23bf2@toastin.space> (view parent)
Sender timestamp
1544478668
DKIM signature
missing
Download raw message
@ Chloe Kudryavtsev,

Thank you for your quick answer.

On 12/7/2018 21:24, Chloe Kudryavtsev wrote:

>> Enter where to store configs ('floppy', 'sda2', 'usb' or 'none') [sda2]: 
>> no error message but any alpine.apkovl.tar.gz file is created on sda2 :( 
>
>The utility in question is setup-lbu. 
>There are lots of issues with it right now. 
>/media/ filesystems are currently mounted ro by default - you can 
>remount it rw on your own (mount /media/sda2 -o remount,rw) and then run 
>`setup-lbu sda2`.

Sorry, my mistake. I forgot I have to run lbu commit after setup-alpine.     :/
No need to "remount rw sda2"; "lbu ci sda2" does the job correctly. Well...
Alpine is perfect!


>Based on your prior description, there seems to be a misunderstanding 
>unto what a "config" is.

Ooh yes... You're right. I confused config and changes.     :/ again.


>I'm busy writing the documentation.

Good thing. I've all to learn about Alpine


Thanks again





---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)