-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make root readonly, create a partition for persistent data
- Loading branch information
1 parent
6aecca6
commit 702f40d
Showing
12 changed files
with
89 additions
and
13 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
aa_wireless_dongle/board/common/rootfs_overlay/etc/init.d/S00persist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# | ||
# Setup persistent storage | ||
# | ||
|
||
case "$1" in | ||
start) | ||
echo "Setup persistent storage..." | ||
mkdir -p /persist/seedrng | ||
mkdir -p /persist/bluetooth | ||
;; | ||
*) | ||
echo "Usage: $0 {start}" | ||
exit 1 | ||
esac | ||
|
||
exit $? |
Empty file.
1 change: 1 addition & 0 deletions
1
aa_wireless_dongle/board/common/rootfs_overlay/var/lib/bluetooth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/persist/bluetooth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/persist/seedrng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
image boot.vfat { | ||
vfat { | ||
files = { | ||
#BOOT_FILES# | ||
} | ||
} | ||
|
||
size = 32M | ||
} | ||
|
||
image persist.ext4 { | ||
name = "persist" | ||
ext4 { | ||
label = "persist" | ||
use-mke2fs = true | ||
} | ||
size = 32M | ||
} | ||
|
||
|
||
image sdcard.img { | ||
hdimage { | ||
} | ||
|
||
partition boot { | ||
partition-type = 0xC | ||
bootable = "true" | ||
image = "boot.vfat" | ||
} | ||
|
||
partition rootfs { | ||
partition-type = 0x83 | ||
image = "rootfs.ext4" | ||
} | ||
|
||
partition persist { | ||
partition-type = 0x83 | ||
image = "persist.ext4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
source board/raspberrypi/post-image.sh |
9 changes: 9 additions & 0 deletions
9
aa_wireless_dongle/board/raspberrypi/rootfs_overlay/etc/fstab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
/dev/root / ext2 ro,noauto 0 1 | ||
/dev/mmcblk0p3 /persist ext4 defaults,noatime 0 2 | ||
proc /proc proc defaults 0 0 | ||
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0 | ||
tmpfs /dev/shm tmpfs mode=0777 0 0 | ||
tmpfs /tmp tmpfs mode=1777 0 0 | ||
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 | ||
sysfs /sys sysfs defaults 0 0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters