Opened 10 years ago

Closed 8 years ago

Last modified 4 years ago

#3531 closed defect (obsolete)

/var is now on flash - symlink to /tmp is missing

Reported by: chris@… Owned by: zandbelt
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: Cc:


I have just noticed that /var is now in flash. The symlink to /tmp is missing.
This will/may create excessive ware on the flash.

just build with r11429

Attachments (1)

.config_csm (58.0 KB) - added by chris@… 10 years ago.
r11429 config file

Download all attachments as: .zip

Change History (12)

comment:1 Changed 10 years ago by chris@…

just checked build 10988 - same issue there
as a result I have several big log files in the flash - I had been relying on regular reboots to flush them out, and in the past I was not worried about the activity level as it used to be in ram.

comment:2 Changed 10 years ago by KanjiMonster

The link from /var to /tmp is there on my asus router; image based on r11305 (built for brcm47xx-2.6).
Perhaps someting in your configuration? Please try again with a clean checkout.

comment:3 Changed 10 years ago by chris@…

I did use a fresh/clean check out. I the version of gcc was updated, and I don't know of a way to reconfigure the tooling config. so when ever that is required I move the old build, and pull a fresh one from SVN. r11429 was pulled fresh today.

FYI: I am running 2.4 kernel on broadcom. I have attached a copy of my config file, incase you want to build and inspect

Changed 10 years ago by chris@…

r11429 config file

comment:4 Changed 10 years ago by chris@…

OK I have gotten to the bottom of this.
It is cause by building the image with Asterisk 1.4.x included

Building the image without Asterisk 1.4.x is OK. I have gone back over all the previous installations and all that have /var in flash where built with Asterisk included in the image

Shame ... having Asterisk in the image was fantastic.

I would still consider this a bug. But obviously not with a high priority, as the simple solution is "DON'T DO THAT"

comment:5 Changed 10 years ago by chris@…

FYI - in-case any one follows this up.

I also checked /rom/var, it was a directory not a symlink. So this breaking at build, not at first boot.

comment:6 follow-up: Changed 10 years ago by KanjiMonster

Hmm, I never used asterisk, but looking at its Makefile, the culprit seems to be in the install:

define Package/asterisk14/install
        $(CP) $(PKG_INSTALL_DIR)/* $(1)
        rm -rf $(1)/usr/include
        rm -rf $(1)/var/spool/asterisk/meetme
        rm -rf $(1)/var/spool/asterisk/voicemail

Try to replace the last two lines with the following line:

        rm -rf $(1)/var

And see if you still have the problem.

comment:7 in reply to: ↑ 6 ; follow-up: Changed 10 years ago by anonymous

Replying to KanjiMonster:

Try to replace the last two lines with the following line:

        rm -rf $(1)/var

And see if you still have the problem.

I changed this, and can confirm this resolves the problem.

comment:8 in reply to: ↑ 7 Changed 10 years ago by tjibbe

The gsm option is also changed, so voicemail/sounds can be used. It is also solved in the 1.4.18 patch from Hans Zandbelt for Kamikaze 1.09.
svn diff Makefile:

Index: Makefile
--- Makefile    (revision 12089)
+++ Makefile    (working copy)
@@ -264,7 +264,7 @@
        --without-curl \
        --without-curses \
-       --without-gsm \
+       --with-gsm \
        --without-imap \
        --without-isdnnet \
        --without-kde \
@@ -461,8 +461,7 @@
        rm -rf $(1)/usr/bin
        rm -rf $(1)/usr/man
        rm -rf $(1)/usr/include
-       rm -rf $(1)/var/spool/asterisk/meetme
-       rm -rf $(1)/var/spool/asterisk/voicemail
+       rm -rf $(1)/var
        (cd $(1)/usr/lib/asterisk; \
                rm -rf agi-bin; \
                rm -rf images; \

comment:9 Changed 9 years ago by florian

  • Owner changed from developers to zandbelt

comment:10 Changed 8 years ago by jow

  • Resolution set to obsolete
  • Status changed from new to closed

fixed in r17478

comment:11 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.