mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
init: add boot parameter to start in-memory live mode
.. no /storage hacks hacks, would also work with uefi boot
This commit is contained in:
parent
d826fa2e44
commit
0d847e4f13
@ -55,6 +55,8 @@
|
|||||||
INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'`
|
INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'`
|
||||||
SYSTEM_TORAM_LIMIT=1024000
|
SYSTEM_TORAM_LIMIT=1024000
|
||||||
|
|
||||||
|
LIVE="no"
|
||||||
|
|
||||||
# hide kernel log messages on console
|
# hide kernel log messages on console
|
||||||
echo '1 4 1 7' > /proc/sys/kernel/printk
|
echo '1 4 1 7' > /proc/sys/kernel/printk
|
||||||
|
|
||||||
@ -129,6 +131,9 @@
|
|||||||
noram)
|
noram)
|
||||||
SYSTEM_TORAM=no
|
SYSTEM_TORAM=no
|
||||||
;;
|
;;
|
||||||
|
live)
|
||||||
|
LIVE=yes
|
||||||
|
;;
|
||||||
overlay)
|
overlay)
|
||||||
OVERLAY=yes
|
OVERLAY=yes
|
||||||
;;
|
;;
|
||||||
@ -491,6 +496,12 @@
|
|||||||
mount_storage() {
|
mount_storage() {
|
||||||
progress "Mounting storage"
|
progress "Mounting storage"
|
||||||
|
|
||||||
|
if [ "$LIVE" = "yes" ]; then
|
||||||
|
# mount tmpfs and exit early. disk=xx is not allowed in live mode
|
||||||
|
mount -t tmpfs none /storage
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
wakeonlan
|
wakeonlan
|
||||||
|
|
||||||
if [ -n "$disk" ]; then
|
if [ -n "$disk" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user