Browse Source

- rootfs: change /var/run handling; it's a real directory now mounted to tmpfs

master
vanhofen 2 years ago
parent
commit
ddbd08ef05
  1. 1
      make/buildsystem-bootstrap.mk
  2. 7
      make/target-rootfs.mk
  3. 1
      package/sysvinit/files/rcS-hd1
  4. 1
      package/sysvinit/files/rcS-hd2
  5. 1
      package/sysvinit/files/rcS-hd5x
  6. 1
      package/sysvinit/files/rcS-hd6x
  7. 1
      package/sysvinit/files/rcS-vuduo
  8. 1
      package/sysvinit/files/rcS-vuplus

1
make/buildsystem-bootstrap.mk

@ -50,6 +50,7 @@ target-dir:
$(INSTALL) -d $(TARGET_localstatedir)/etc/init.d
$(INSTALL) -d $(TARGET_localstatedir)/keys
$(INSTALL) -d $(TARGET_localstatedir)/root
$(INSTALL) -d $(TARGET_localstatedir)/run
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse))
$(INSTALL) -d $(TARGET_DIR)/boot
endif

7
make/target-rootfs.mk

@ -39,13 +39,12 @@ $(TARGET_localstatedir)/etc/update.urls: | $(TARGET_DIR)
symbolic-links: | $(TARGET_DIR)
$(CD) $(TARGET_DIR); \
rm -rf root; ln -sf /var/root root; \
rm -rf share; ln -sf /usr/share share; \
rm -rf run; ln -sf /var/run run
rm -rf run; ln -sf /var/run run; \
rm -rf share; ln -sf /usr/share share
$(CD) $(TARGET_localstatedir); \
rm -rf run; ln -sf /tmp run; \
rm -rf tmp; ln -sf /tmp tmp
$(CD) $(TARGET_sysconfdir); \
ln -sf /proc/mounts mtab
rm -rf mtab; ln -sf /proc/mounts mtab
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
$(CD) $(TARGET_sysconfdir); \
ln -sf /var/etc/hostname hostname

1
package/sysvinit/files/rcS-hd1

@ -20,6 +20,7 @@ mount -t proc proc /proc
SHOWINFO "creating and mounting system directories ..."
mount -t sysfs sys /sys
mount -t tmpfs tmp /tmp
mount -t tmpfs run /var/run
mount -t tmpfs media /media
mount -t tmpfs srv /srv
mount -t tmpfs mnt /mnt

1
package/sysvinit/files/rcS-hd2

@ -25,6 +25,7 @@ fi
SHOWINFO "creating and mounting system directories ..."
mount -t sysfs sys /sys
mount -t tmpfs tmp /tmp
mount -t tmpfs run /var/run
mount -t tmpfs media /media
mount -t tmpfs srv /srv
mount -t tmpfs mnt /mnt

1
package/sysvinit/files/rcS-hd5x

@ -21,6 +21,7 @@ SHOWINFO "creating and mounting system directories ..."
mount -t devtmpfs devtmpfs /dev
mount -t sysfs sys /sys
mount -t tmpfs tmp /tmp
mount -t tmpfs run /var/run
mount -t tmpfs media /media
mount -t tmpfs srv /srv
mount -t tmpfs mnt /mnt

1
package/sysvinit/files/rcS-hd6x

@ -21,6 +21,7 @@ SHOWINFO "creating and mounting system directories ..."
mount -t devtmpfs devtmpfs /dev
mount -t sysfs sys /sys
mount -t tmpfs tmp /tmp
mount -t tmpfs run /var/run
mount -t tmpfs media /media
mount -t tmpfs srv /srv
mount -t tmpfs mnt /mnt

1
package/sysvinit/files/rcS-vuduo

@ -20,6 +20,7 @@ mount -t proc proc /proc
SHOWINFO "creating and mounting system directories ..."
mount -t sysfs sys /sys
mount -t tmpfs tmp /tmp
mount -t tmpfs run /var/run
mount -t tmpfs media /media
mount -t tmpfs srv /srv
mount -t tmpfs mnt /mnt

1
package/sysvinit/files/rcS-vuplus

@ -20,6 +20,7 @@ mount -t proc proc /proc
SHOWINFO "creating and mounting system directories ..."
mount -t sysfs sys /sys
mount -t tmpfs tmp /tmp
mount -t tmpfs run /var/run
mount -t tmpfs media /media
mount -t tmpfs srv /srv
mount -t tmpfs mnt /mnt

Loading…
Cancel
Save