Skip to content

Commit

Permalink
manage_overlayfs: Keep the default value of overlayroot_cfgdisk
Browse files Browse the repository at this point in the history
"enabled" is not a valid value for the option. Aside for "disabled", here are
examples from /etc/overlayroot.conf:

    overlayroot_cfgdisk="LABEL=OROOTCFG"
    overlayroot_cfgdisk="/dev/vdb"
  • Loading branch information
slowpeek authored and igorpecovnik committed Jan 19, 2025
1 parent f5f6df2 commit e2e100f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/modules/system/manage_overlayfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function manage_overlayfs() {
pkg_install -o Dpkg::Options::="--force-confold" overlayroot cryptsetup cryptsetup-bin
[[ ! -f /etc/overlayroot.conf ]] && cp /etc/overlayroot.conf.dpkg-new /etc/overlayroot.conf
sed -i "s/^overlayroot=.*/overlayroot=\"tmpfs\"/" /etc/overlayroot.conf
sed -i "s/^overlayroot_cfgdisk=.*/overlayroot_cfgdisk=\"enabled\"/" /etc/overlayroot.conf
else
overlayroot-chroot rm /etc/overlayroot.conf > /dev/null 2>&1
pkg_remove overlayroot cryptsetup cryptsetup-bin
Expand Down

0 comments on commit e2e100f

Please sign in to comment.