mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +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}'`
|
||||
SYSTEM_TORAM_LIMIT=1024000
|
||||
|
||||
LIVE="no"
|
||||
|
||||
# hide kernel log messages on console
|
||||
echo '1 4 1 7' > /proc/sys/kernel/printk
|
||||
|
||||
@ -129,6 +131,9 @@
|
||||
noram)
|
||||
SYSTEM_TORAM=no
|
||||
;;
|
||||
live)
|
||||
LIVE=yes
|
||||
;;
|
||||
overlay)
|
||||
OVERLAY=yes
|
||||
;;
|
||||
@ -491,6 +496,12 @@
|
||||
mount_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
|
||||
|
||||
if [ -n "$disk" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user