diff --git a/make/buildsystem-bootstrap.mk b/make/buildsystem-bootstrap.mk index d939d06c..c78a56a2 100644 --- a/make/buildsystem-bootstrap.mk +++ b/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 diff --git a/make/target-rootfs.mk b/make/target-rootfs.mk index da3b1cea..955ebde8 100644 --- a/make/target-rootfs.mk +++ b/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 diff --git a/package/sysvinit/files/rcS-hd1 b/package/sysvinit/files/rcS-hd1 index 698f96d4..cc350d43 100644 --- a/package/sysvinit/files/rcS-hd1 +++ b/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 diff --git a/package/sysvinit/files/rcS-hd2 b/package/sysvinit/files/rcS-hd2 index 8d284fc0..bff05806 100644 --- a/package/sysvinit/files/rcS-hd2 +++ b/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 diff --git a/package/sysvinit/files/rcS-hd5x b/package/sysvinit/files/rcS-hd5x index f98fccbe..7a84836e 100644 --- a/package/sysvinit/files/rcS-hd5x +++ b/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 diff --git a/package/sysvinit/files/rcS-hd6x b/package/sysvinit/files/rcS-hd6x index da0521af..207d80ec 100644 --- a/package/sysvinit/files/rcS-hd6x +++ b/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 diff --git a/package/sysvinit/files/rcS-vuduo b/package/sysvinit/files/rcS-vuduo index 3530a0f4..6a5bcc1c 100644 --- a/package/sysvinit/files/rcS-vuduo +++ b/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 diff --git a/package/sysvinit/files/rcS-vuplus b/package/sysvinit/files/rcS-vuplus index 527a8a4a..0d4fbbd2 100644 --- a/package/sysvinit/files/rcS-vuplus +++ b/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