Ticket #162 (closed defect: fixed)

Opened 4 years ago

Last modified 17 months ago

fstab should be different accordingly on where is your root

Reported by: anonymous Owned by: ainulindale
Priority: minor Milestone:
Component: SHR Image Version:
Keywords: Cc:

Description

if you use jffs2 then your / is on internal flash, instead if you use the sd card, the block device is different.
the same issue about /boot
at the moment fstab ignores this...

Change History

comment:1 Changed 4 years ago by dos

  • Milestone MS1 deleted

comment:2 in reply to: ↑ description Changed 4 years ago by monto

  • Priority changed from major to minor

Replying to anonymous:

if you use jffs2 then your / is on internal flash, instead if you use the sd card, the block device is different.
the same issue about /boot
at the moment fstab ignores this...

This can't be automagically done, if i'm from uSD i can run shr from a single partition which may not be /dev/mmcblk01 or i can run shr with different partition so that i can have /boot on a partition, / on another, /home on another.
So you have to edit your fstab by yourself, the root partition is mounted at boot time with the "root=" parameter in the bootloader.

comment:3 Changed 3 years ago by TAsn

This can (and probably should) be done automatically by shr-wizard. Unfortunately we can't afford to ignore something as important as this.

comment:4 Changed 3 years ago by Heinervdm

  • Milestone set to MS3

comment:5 Changed 2 years ago by GNUtoo

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

fixed in openembedded,
The fix should land soon on newer images or trough

opkg update
opkg upgrade

Denis.

comment:6 Changed 2 years ago by GNUtoo

here's the content of the new /etc/fstab:

rootfs               /                    auto       defaults              1  1
proc                 /proc                proc       defaults              0  0
tmpfs                /var/volatile        tmpfs      defaults              0  0
tmpfs                /dev/shm             tmpfs      mode=0777             0  0
tmpfs                /media/ram           tmpfs      defaults              0  0

# microSD slot
/dev/mmcblk0p1       /media/card          auto       defaults              0  0

comment:7 Changed 2 years ago by GNUtoo

it's generic but that's the best and easiest way to do it.

re-open if you have a better way to do it.

Denis.

comment:8 Changed 17 months ago by morphis

  • Milestone MS3 deleted

Milestone MS3 deleted

Note: See TracTickets for help on using tickets.