All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Graute <oliver.graute@gmail.com>
To: yocto@yoctoproject.org
Subject: wic adds wrong mount lines to my fstab
Date: Tue, 9 Feb 2016 09:29:16 +0100	[thread overview]
Message-ID: <20160209082916.GB6748@graute-opti> (raw)

Hello list,

I am using wic to generate partitioned yocto images. After I boot such
an Image, I see two added entrys in my /etc/fstab wich are not correct.

cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir>             <type>   <options>       <dump> <pass>

/dev/root       /                 auto     defaults        1  1
proc            /proc             proc     defaults        0  0
devpts          /dev/pts          devpts   mode=0620,gid=5 0  0
usbdevfs        /proc/bus/usb     usbdevfs noauto          0  0

/dev/mmcblk0p5  /rwfs             auto     defaults        0  0
#/dev/mmcblk0p3  /rescue           ext3     defaults        0  0
/dev/mmcblk0p5  /data             ext3     defaults        0  0

tmpfs           /run              tmpfs    mode=0755,nodev,nosuid,strictatime 0  0
tmpfs           /var/volatile     tmpfs    defaults        0  0
tmpfs           /var/cache        tmpfs    defaults        0  0
tmpfs           /var/lib          tmpfs    defaults        0  0
tmpfs           /var/spool        tmpfs    defaults        0  0
tmpfs           /var/apache2/logs tmpfs    defaults        0  0
/dev/mmcblkp3   /rescue ext3    defaults        0       0
/dev/mmcblkp5   /data   ext3    defaults        0       0

the last two lines are added by the wic tool. Here is the 0 missing. If
I add these 0 to my wks --ondisk mmcblk option wic is complaining. So I`am
just using is like in this wks disk layout:

# short-description: Create SD card image with a boot partition
# long-description:
# Create an image that can be written onto a SD card using dd for use
# with i.MX SoC family.
# It uses SPL and u-boot
#
# The disk layout used is:
#  - ----- --------- ---------- -------- --------- ---------- ------------
# | | SPL | u-boot  |  /boot1  | /boot2 | rootfs1 | rootfs2  |    data    |
#  - ----- --------- ---------- -------- --------- ---------- ------------
# ^ ^     ^         ^         ^              ^
# | |     |         |         |              |
# 0 1kiB  69kiB     4MiB   4MiB + 20MiB    4MiB + 8Mib + rootfs1 + rootfs2 + data
#
part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1
part u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 69
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 20M --extra-space 0
#part /boot2 --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot2 --active --align 4096 --size 8M --extra-space 0
part / --source rootfs --ondisk mmcblk --fstype=ext3 --label root --align 4 --size 125
part /rescue --source rootfs --ondisk mmcblk --fstype=ext3 --label secondary --align 4 --size 125
part /data --ondisk mmcblk --fstype=ext3 --label data --align 4 --size 730

Some sugesstions to fix this?

Best regards,

Oliver


             reply	other threads:[~2016-02-09  8:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09  8:29 Oliver Graute [this message]
2016-02-10 10:19 ` wic adds wrong mount lines to my fstab Ed Bartosh
2016-02-10 19:06   ` Oliver Graute

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160209082916.GB6748@graute-opti \
    --to=oliver.graute@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.