Hi
On Fri, May 1, 2020 at 8:47 AM Gmane Admin <[email protected]> wrote: > > Op 01-05-2020 om 01:11 schreef Rudolf J Streif: > > Thanks, guys, I appreciate it. > > > > Doing it dynamically on first boot would probably work as it is a data > > partition and not the rootfs partition. > > If you use btrfs you can even resize the rootfs (mounted) partition. > I don't said but the code I sent resize my rootfs Michael > > I will give it a try. > > > > :rjs > > > > On 4/30/20 12:13 PM, Michael Nazzareno Trimarchi wrote: > >> Hi > >> > >> On Thu, Apr 30, 2020 at 9:10 PM Michael Nazzareno Trimarchi via > >> lists.yoctoproject.org > >> <[email protected]> wrote: > >>> Hi > >>> > >>> Well I have write something like this > >>> > >>> [Unit] > >>> Description=Increases rootfs image size to fit partition > >>> Requires=dev-disk-by\x2dpartlabel-rootfs.device > >>> After=dev-disk-by\x2dpartlabel-rootfs.device > >>> > >>> [Service] > >>> Type=oneshot > >>> ExecStart=/usr/sbin/sgdisk /dev/disk/by-path/platform-ff0f0000.dwmmc -e > >> This resize gpt up to disk size > >> > >>> ExecStart=/usr/sbin/parted /dev/disk/by-path/platform-ff0f0000.dwmmc > >>> -s "resizepart 4 -1" quit > >> This resize partition number 4 up to the max > >> > >> Michael > >> > >>> ExecStart=/sbin/resize2fs /dev/disk/by-partlabel/rootfs > >>> ExecStart=/bin/systemctl disable resize-rootfs.service > >>> > >>> StandardOutput=journal+console > >>> > >>> [Install] > >>> WantedBy=default.target > >>> > >>> > >>> On Thu, Apr 30, 2020 at 8:30 PM Marek Belisko<[email protected]> > >>> wrote: > >>>> On Thu, Apr 30, 2020 at 8:27 PM Khem Raj<[email protected]> wrote: > >>>>> > >>>>> On 4/30/20 11:25 AM, Marek Belisko wrote: > >>>>>> On Thu, Apr 30, 2020 at 8:23 PM Khem Raj<[email protected]> wrote: > >>>>>>> > >>>>>>> On 4/30/20 11:16 AM, Marek Belisko wrote: > >>>>>>>> Hi Rudolf, > >>>>>>>> > >>>>>>>> On Thu, Apr 30, 2020 at 7:39 PM Rudolf J Streif > >>>>>>>> <[email protected]> wrote: > >>>>>>>>> I was looking for a way in a wks file to have wic grow the last > >>>>>>>>> partition to fill up the remainder of the disk. Of course wic does > >>>>>>>>> not > >>>>>>>>> know how large the disk is but that could be a parameter. > >>>>>>>>> > >>>>>>>>> The alternative way is to use fixed-size and do the math manually > >>>>>>>>> but > >>>>>>>>> that would not allow wic to grow a partition based on content. > >>>>>>>> You can > >>>>>>>> usehttps://manpages.debian.org/testing/systemd/systemd-growfs.8.en.html > >>>>>>>> which grow partition to the end. > >>>>>>> can it grow a mounted partition ? since that will be the case when > >>>>>>> growing rootfs partition. > >>>>>> It will grow last partition in first boot only. > >>>>> my question was will it grow a mounted rootfs parition if that happens > >>>>> tobe the last partition, I understand it will grow last partion and do > >>>>> it as firstboot service. > >>>> I usually use it in case when have dual rootfs (A, B) and data > >>>> partition which is expanded to then end of disk. > >>>> I don't have experience with growing rootfs (I think it can grow only > >>>> not mounted partitions) > >>>>>>>>> :rjs > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> BR, > >>>>>>>> > >>>>>>>> marek > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>> BR, > >>>>>> > >>>>>> marek > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>> marek > >>>> > >>>> > >>>> -- > >>>> as simple and primitive as possible > >>>> ------------------------------------------------- > >>>> Marek Belisko - OPEN-NANDRA > >>>> Freelance Developer > >>>> > >>>> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic > >>>> Tel: +421 915 052 184 > >>>> skype: marekwhite > >>>> twitter: #opennandra > >>>> web:http://open-nandra.com > >>>> > >>> > >>> -- > >>> | Michael Nazzareno Trimarchi Amarula Solutions BV | > >>> | COO - Founder Cruquiuskade 47 | > >>> | +31(0)851119172 Amsterdam 1018 AM NL | > >>> | [`as]http://www.amarulasolutions.com | > >>> > >> > >> > > -- > > ----- > > Rudolf J Streif > > CEO/CTO ibeeto > > +1.855.442.3386 x700 > > > > > > > > > > > -- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49300): https://lists.yoctoproject.org/g/yocto/message/49300 Mute This Topic: https://lists.yoctoproject.org/mt/73380716/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/737036229/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
