Modify

Opened 5 years ago

Last modified 3 years ago

#12228 new defect

scripts assume that /var/state is not persistent

Reported by: Attila Lendvai <attila.lendvai@…> Owned by: developers
Priority: lowest Milestone: Bugs Paradise
Component: base system Version: Trunk
Keywords: Cc:

Description

we have an extroot setup where /var is relocated to the persistent extroot. this caused distant problems with e.g. the firewall scripts that assumed that the files in /var/state are not persistent across reboots.

our solution was to ln -s /tmp /var/state which seems to work as expected.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by jow

  • Milestone changed from Attitude Adjustment (trunk) to Bugs Paradise
  • Priority changed from normal to lowest

comment:2 Changed 5 years ago by attila.lendvai@…

another, somewhat relevant note:

/usr/bin/sshtunnel.sh references /tmp/log and /tmp/run instead of /var/log and /var/run.

comment:3 Changed 3 years ago by attila.lendvai@…

with chaos calmer my kludge doesn't work anymore. unfortunately the network doesn't come up so i can't even see what's going on... :/

FTR, this is the project where i've published the script that i use: https://github.com/attila-lendvai/openwrt-auto-extroot

and while we are at it, maybe the issue could be renamed to "/var is assumed not to be persistent across reboots"

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.