Changeset 2370


Ignore:
Timestamp:
May 5, 2014, 10:25:52 AM (4 years ago)
Author:
matthijs
Message:

mountd: Check fmg filesystem images before starting

When these images don't get unmounted properly, due to power loss,
unexpected USB device removal, etc., the filesystem might get damaged.
Running fsck should keep the the filesystem working, reducing the chance
that a Transmission (currently the only fmg image in use) install gets
corrupted.

Thanks to Thomas Horner for this patch.

Closes: #1250

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/mountd/files/bin/fon_image.sh

    r2235 r2370  
    4848mount_img() {
    4949        /bin/mkdir -p /tmp/images/${IMG}
     50        /usr/sbin/e2fsck -fy ${P}/${FON}/${IMG}.${VERSION}.fmg
    5051        /bin/mount -o loop -t ext2 ${P}/${FON}/${IMG}.${VERSION}.fmg /tmp/images/${IMG}
    5152        /bin/sleep 1
     53        /usr/sbin/e2fsck -fy ${P}/${FON}/${IMG}.${VERSION}.var
    5254        /bin/mount -o loop -t ext2 ${P}/${FON}/${IMG}.${VERSION}.var /tmp/images/${IMG}/var
    5355}
Note: See TracChangeset for help on using the changeset viewer.