Skip to content

Commit

Permalink
Enable automatic mounting of Fremantle's file systems
Browse files Browse the repository at this point in the history
  • Loading branch information
dderby committed Jun 20, 2015
1 parent 93c3423 commit 3c2a87a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions debian.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ CMDLINE="rootwait ro console=tty0 vram=12M ubi.mtd=5"
# The default value is the swap slice on the internal eMMC as used by Maemo by default
SWAPDEVICE=/dev/mmcblk1p3

# Automatically mount Fremantle file systems under /srv/fremantle
MOUNTFREMANTLE=y

# The Fremantle /home device to specify in fstab(5)
HOMEDEVICE=/dev/mmcblk1p2

# The Fremantle /home/user/MyDocs device to specify in fstab(5)
MYDOCSDEVICE=/dev/mmcblk1p1

# The bootmenu item file prefix number
BOOTSEQUENCE=30

Expand Down
13 changes: 13 additions & 0 deletions install_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ test -r $DIR/debian.conf.local && . $DIR/debian.conf.local
: $HOSTNAME
: $CMDLINE
: $SWAPDEVICE
: $MOUNTFREMANTLE
: $HOMEDEVICE
: $MYDOCSDEVICE
: $BOOTSEQUENCE
: $KEYMAP_URL
: $XKB_URL
Expand Down Expand Up @@ -150,6 +153,16 @@ none /tmp tmpfs noatime 0 0
$SWAPDEVICE none swap sw 0 0
EOF

if [ "x$MOUNTFREMANTLE" = xY ] || [ "x$MOUNTFREMANTLE" = xy ]; then
mkdir -p $MOUNTPOINT/srv/fremantle
cat << EOF >> $MOUNTPOINT/etc/fstab
/dev/ubi0_0 /srv/fremantle ubifs defaults,noatime 0 0
$HOMEDEVICE /srv/fremantle/home ext3 noatime,errors=continue,commit=1,data=writeback 0 0
/srv/fremantle/home/opt /srv/fremantle/opt none bind 0 0
$MYDOCSDEVICE /srv/fremantle/home/user/MyDocs vfat nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0
EOF
fi

# Change power button behaviour
if [ x${POWER_BUTTON_ACTION:-} != x ]; then
sed -i 's/\(action=\).*$/\1'$POWER_BUTTON_ACTION'/' $MOUNTPOINT/etc/acpi/events/powerbtn-acpi-support
Expand Down

0 comments on commit 3c2a87a

Please sign in to comment.