You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sed -i /boot/cmdline.txt -e "s/\(.*\)boot=overlay \(.*\)/\1\2/"
@@ -2675,6 +2681,14 @@ disable_bootro() {
2675
2681
}
2676
2682
2677
2683
do_overlayfs() {
2684
+
if [ !"$INTERACTIVE"= True -a!"$1" ];thenecho'
2685
+
do_overlayfs status [ writable [ invisible ] ]
2686
+
"status" can be 0=enable or 1=disable overlayfs (default)
2687
+
"writable" can be 0=read-only (default) or 1=writable boot partition
2688
+
"invisible" (used when enabling the overlayfs) can be 0=visible mounts or 1=invisible mounts (default)
2689
+
'
2690
+
return 1
2691
+
fi
2678
2692
DEFAULT=--defaultno
2679
2693
CURRENT=0
2680
2694
STATUS="disabled"
@@ -2695,7 +2709,26 @@ do_overlayfs() {
2695
2709
else
2696
2710
RET=$1
2697
2711
fi
2712
+
case"$RET"in''|*[!01]*) RET=1;; esac
2698
2713
if [ $RET-eq$CURRENT ];then
2714
+
MOUNT_POINT="/run"
2715
+
if [ "$INTERACTIVE"= True -a$RET-eq 0 ];then
2716
+
whiptail --yesno "Would you like the mount points of the overlay file system to be visible under '$MOUNT_POINT/upper' (rw) and '$MOUNT_POINT/lower' (ro)?"$DEFAULT 20 60 2
2717
+
MP=$?
2718
+
else
2719
+
MP=$3
2720
+
fi
2721
+
case"$MP"in''|*[!01]*) MP=1;; esac
2722
+
if [ $MP-eq 1 ];then
2723
+
MOUNT_POINT=""
2724
+
if [ !"$INTERACTIVE"= True ];then
2725
+
echo"Invisible mount points"
2726
+
fi
2727
+
else
2728
+
if [ !"$INTERACTIVE"= True ];then
2729
+
echo"Mount points under '$MOUNT_POINT'"
2730
+
fi
2731
+
fi
2699
2732
if [ $RET-eq 0 ];then
2700
2733
if enable_overlayfs;then
2701
2734
STATUS="enabled"
@@ -2739,19 +2772,26 @@ do_overlayfs() {
2739
2772
whiptail --yesno "Would you like the boot partition to be write-protected?"$DEFAULT 20 60 2
0 commit comments