[Bug 1758389] Re: List of partitions for overlayroot

2018-07-09 Thread Scott Moser
** Changed in: cloud-initramfs-tools (Ubuntu)
   Status: New => Confirmed

** Changed in: cloud-initramfs-tools (Ubuntu)
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758389

Title:
  List of partitions for overlayroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758389] Re: List of partitions for overlayroot

2018-03-26 Thread Nikolay Turpitko via ubuntu-bugs
Please disregard last paragraph in my comment #1. I've found that I was
not able to boot with recurse=1 not due of read-only /var, but due of
script's attempt to remount absent cdrom for which I have an entry in my
/etc/fstab (added by system installer).

Nevertheless, I found new configuration useful to exclude some filesystems from 
recurse. For example, to properly boot with (separate) read-only /,/boot,/var 
and read-write /home I use string like below in my /etc/overlayroot.local.conf:
overlayroot="tmpfs:swap=1,debug=1,driver=overlay,recurse=not:cdrom|home".

I checked - this syntax also works for kernel command line, I only had
to put recurse option in single quotes like: "...
overlayroot=tmpfs:swap=1,recurse='not:cdrom|home'".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758389

Title:
  List of partitions for overlayroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758389] Re: List of partitions for overlayroot

2018-03-26 Thread Nikolay Turpitko via ubuntu-bugs
Simplified conditional logic and allowed to negate expression.

** Patch added: "0001-Allow-to-list-affected-filesystems-in-recurse.patch"
   
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+attachment/5091398/+files/0001-Allow-to-list-affected-filesystems-in-recurse.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758389

Title:
  List of partitions for overlayroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758389] Re: List of partitions for overlayroot

2018-03-26 Thread Nikolay Turpitko via ubuntu-bugs
** Patch removed: "0001-Allow-to-list-affected-filesystems-in-recurse.patch"
   
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+attachment/5089305/+files/0001-Allow-to-list-affected-filesystems-in-recurse.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758389

Title:
  List of partitions for overlayroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758389] Re: List of partitions for overlayroot

2018-03-24 Thread Ubuntu Foundations Team Bug Bot
The attachment "0001-Allow-to-list-affected-filesystems-in-
recurse.patch" seems to be a patch.  If it isn't, please remove the
"patch" flag from the attachment, remove the "patch" tag, and if you are
a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758389

Title:
  List of partitions for overlayroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758389] Re: List of partitions for overlayroot

2018-03-24 Thread Nikolay Turpitko via ubuntu-bugs
I attached a patch, illustrating changes I propose.
I amended "recurse" option so that it take a regexp of filesystem names to work 
on, besides old values "0" and "1". That is, old values keep their meaning, but 
if recurese is set to something like "boot|backup" it will work only on those 
filesystems.

I tested with option
`overlayroot="tmpfs:swap=1,recurse=boot|backup,driver=overlay"`. It
works for me, but I don't know other use cases, for which people use
this package and cannot properly test them, obviously. Also, reusing
"recurse" option though simple, but may be questionable by someone. So,
see the patch as an illustration of idea, not as a completed solution.

Also, I found that "overlayroot-chroot" did not mount separate /var
partition and without it apt/dpkg failed to properly remove packages. I
added "var" into list of filesystems which "overlayroot-chroot" binds
before executing chroot. This is also may be not inline with original
design, but I just don't know how to properly deal with it.

With these modifications package works for me, but still is not quite
perfect solution for my goal. Which is to protect /, /boot and /backup
partitions of my laptop from incidental modifications, but leave /home,
/var, /swap and /tmp partitions in rw mode. I do not want to mount all
partitions as a single /, because I have SDD+HDD and partitions should
be on different drives (for example, / is on SDD and /var - on HDD).
Also I do not want to mount my /home as ro. And in my tests I even was
not able to boot with read-only /var. With my modifications and settings
I can boot and work with system almost normally, except that incidental
attempt to remove package without "overlay-chroot" can modify dpkg's
database (which is on rw /var), though / and /boot are protected and
restored after reboot alright. Alas, it leaves system in a half-damaged
state. I'd appreciate some idea to prevent this. But, probably, just an
alias will do.

** Patch added: "0001-Allow-to-list-affected-filesystems-in-recurse.patch"
   
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+attachment/5089305/+files/0001-Allow-to-list-affected-filesystems-in-recurse.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758389

Title:
  List of partitions for overlayroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1758389/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs