The officially official Devuan Forum!

You are not logged in.

#1 2018-06-09 12:19:46

Dutch_Master
Member
Registered: 2018-05-31
Posts: 20  

(Un)Limited TTL for mirror Release files

Not sure this is the right forum for this particular topic, but here it goes.

First, some background info:
I work for a recycling company/thrift shop chain. Earlier this year I was added to the already running PC-refurbishment project. Officially this consists of 3 blokes, including yours truly, but one is a web designer and hasn't visited the premises housing the project since he'd introduced me, the other chap is a volunteer with ADD and an addiction who uses it as some sort of rehab. Meaning that effectively, I'm running the place.

Hardware is donated by private individuals but also (semi-) commercial enterprises as well as governmental dept's (including UN tribunals, which are/were located in or in the vicinity off my home town) and ranges from Lenovo Intel-based Core2 systems (sans hard-drive and RAM) to Dell P4's. I even have a P3 server (2U, SCSI-based) set aside as the drive is too small (70GB is not enough).

When I started out, Linux Mint was used to install Linux on whatever hardware was picked. Imagine the "joy" of systemd on a P4 :-\  We were lucky to install 2 systems a day!  A few weeks ago I made the decision to switch over to Devuan instead. Regrettably, for a novice the default DE is too spartan, so I wanted Mate instead. But that can't be installed from the install DVD (missing policykit packages) as well as quite a few machines can't boot from DVD at all. So I decided to create a local mirror. Fortunately I found enough network stuff to make it happen (switches, machines with sufficient space to host everything one needs for an offline mirror) as our location has no internet connection! Not having done this before it took a fair few days to fiddle everything and get a working system. Next step, obtain the packages from the Devuan mirrors. That went reasonably well, copying the lot over also worked. But after the first week, I got reports that the mirror was outdated and therefore would not be used to install stuff from. This was traced to a just-under-a-week TTL of the various Release files. That in turn meant I need to take the server home every weekend to update it and bring it back in on Monday. Cumbersome. Quite. So, how do I prevent these low TTL files messing things up as it's my intention to inform purchasers of these systems they need to update their PC's after connecting it to the web first thing. Ideally, I'd like to see no TTL at all and I'll update the repo on a monthly basis in order not to get too far out of sync with the main Devuan repo's.

(FYI: I'm running Linux exclusively since 2005, initially Debian after earlier testing of RedHat 8&9 and Suse, but when the last pre-systemd version became too old I switched to Funtoo in 2015. Regrettably Portage is not as good in conflict-resolving as the Debian package managers, so when I learned about Devuan I made the switch when Portage threw me one too many wobbly updating my system :-\ )

Thanks if you've read it this far wink

Offline

#2 2018-06-09 13:15:20

devuser
Member
Registered: 2018-04-30
Posts: 176  

Re: (Un)Limited TTL for mirror Release files

I am not entirely sure if that helps in your situation but adding

-o Acquire::Check-Valid-Until=false

to your apt-get update command would ignore the TTL i think.

Offline

#3 2018-06-10 09:30:27

Dutch_Master
Member
Registered: 2018-05-31
Posts: 20  

Re: (Un)Limited TTL for mirror Release files

Thanks for that. I was hoping for an easier solution as I'd have to type in every command by hand on any newly installed system and I'm one very lazy bu99er tongue (I'm a big fan of tab-completion and bash history scrolling wink )

I'll try using an external hard-drive (USB3) this week for updating the mirror. Tried it before but didn't work as hoped, perhaps better luck this time now I have a better understanding of the processes and tools involved.

Offline

#4 2018-06-10 09:40:07

devuser
Member
Registered: 2018-04-30
Posts: 176  

Re: (Un)Limited TTL for mirror Release files

Dutch_Master wrote:

Thanks for that. I was hoping for an easier solution as I'd have to type in every command by hand on any newly installed system and I'm one very lazy bu99er tongue (I'm a big fan of tab-completion and bash history scrolling wink )

Well, you could always put it in apt's config or add an alias to your shell. You'd just have to remember to remove it before delivering the system but i agree somehow working around it on the mirror would be nicer but sadly i have no idea about how to do that.

Offline

#5 2018-06-10 22:38:22

Dutch_Master
Member
Registered: 2018-05-31
Posts: 20  

Re: (Un)Limited TTL for mirror Release files

Hmmm, there's a thought. I could put it in a script (Bash), put that on the mirror, d/l it from there, execute on the local system then remove the script again have the script remove itself. wink

I'll have a brain-storm about that sometime tomorrow.

Thx again!

Offline

#6 2018-06-11 17:41:30

Dutch_Master
Member
Registered: 2018-05-31
Posts: 20  

Re: (Un)Limited TTL for mirror Release files

Quick note to inform you lot that the mirror transfer via external hard drive works as planned/hoped for, so no more moving about of the actual server smile

I also gave some thought to (partially) automating the install itself, but it would be site-specific so not really suitable for inclusion into the Devuan archive. As it's a different subject it warrants its own thread in due cause.

Offline

Board footer