* [PATCH] Core Update 169: Regenerate initrds and save space on ARM @ 2022-07-07 5:46 Peter Müller 2022-07-07 5:48 ` Peter Müller 0 siblings, 1 reply; 13+ messages in thread From: Peter Müller @ 2022-07-07 5:46 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1049 bytes --] https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> --- config/rootfiles/core/169/update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh index 3902e2d45..50f0bd8a4 100644 --- a/config/rootfiles/core/169/update.sh +++ b/config/rootfiles/core/169/update.sh @@ -150,6 +150,19 @@ ldconfig # Apply sysctl changes /etc/init.d/sysctl start +# Regenerate all initrds +dracut --regenerate-all --force +case "$(uname -m)" in + armv*) + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire + rm /boot/initramfs-${KVER}-ipfire.img + ;; + aarch64) + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire + # dont remove initramfs because grub need this to boot. + ;; +esac + # Start services telinit u /etc/init.d/firewall restart -- 2.35.3 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 5:46 [PATCH] Core Update 169: Regenerate initrds and save space on ARM Peter Müller @ 2022-07-07 5:48 ` Peter Müller 2022-07-07 13:19 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Peter Müller @ 2022-07-07 5:48 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1494 bytes --] Hello *, to my understanding, we do not need to ship "linux-initrd" if we can easily rebuild those on the systems anyway. I would prefer the latter, since that keeps the update smaller. This was also raised somewhere in the community a while ago, but I am unable to find the correspondent thread at the moment. How do we proceed here? Thanks, and best regards, Peter Müller > https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 > > Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> > --- > config/rootfiles/core/169/update.sh | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh > index 3902e2d45..50f0bd8a4 100644 > --- a/config/rootfiles/core/169/update.sh > +++ b/config/rootfiles/core/169/update.sh > @@ -150,6 +150,19 @@ ldconfig > # Apply sysctl changes > /etc/init.d/sysctl start > > +# Regenerate all initrds > +dracut --regenerate-all --force > +case "$(uname -m)" in > + armv*) > + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire > + rm /boot/initramfs-${KVER}-ipfire.img > + ;; > + aarch64) > + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire > + # dont remove initramfs because grub need this to boot. > + ;; > +esac > + > # Start services > telinit u > /etc/init.d/firewall restart ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 5:48 ` Peter Müller @ 2022-07-07 13:19 ` Michael Tremer 2022-07-07 13:30 ` Peter Müller 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2022-07-07 13:19 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 2118 bytes --] Hello, Indeed we don’t need to ship them, we can generate them instead. But that has of course some downsides, too: * It is slow * It is not entirely error-proof (out of disk space, out of memory, system being rebooted too early) I do not really have much of a preference. The only thing I want to say is that ARM needs to get their shit together and being able to load a regular image instead of asking for extra commands here - or build that into dracut. -Michael > On 7 Jul 2022, at 07:48, Peter Müller <peter.mueller(a)ipfire.org> wrote: > > Hello *, > > to my understanding, we do not need to ship "linux-initrd" if we can easily > rebuild those on the systems anyway. I would prefer the latter, since that > keeps the update smaller. > > This was also raised somewhere in the community a while ago, but I am unable > to find the correspondent thread at the moment. > > How do we proceed here? > > Thanks, and best regards, > Peter Müller > > >> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >> >> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >> --- >> config/rootfiles/core/169/update.sh | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) >> >> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >> index 3902e2d45..50f0bd8a4 100644 >> --- a/config/rootfiles/core/169/update.sh >> +++ b/config/rootfiles/core/169/update.sh >> @@ -150,6 +150,19 @@ ldconfig >> # Apply sysctl changes >> /etc/init.d/sysctl start >> >> +# Regenerate all initrds >> +dracut --regenerate-all --force >> +case "$(uname -m)" in >> + armv*) >> + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >> + rm /boot/initramfs-${KVER}-ipfire.img >> + ;; >> + aarch64) >> + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >> + # dont remove initramfs because grub need this to boot. >> + ;; >> +esac >> + >> # Start services >> telinit u >> /etc/init.d/firewall restart ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 13:19 ` Michael Tremer @ 2022-07-07 13:30 ` Peter Müller 2022-07-07 13:43 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Peter Müller @ 2022-07-07 13:30 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 2727 bytes --] Hello Michael, thanks for your reply. > Hello, > > Indeed we don’t need to ship them, we can generate them instead. > > But that has of course some downsides, too: > > * It is slow > * It is not entirely error-proof (out of disk space, out of memory, system being rebooted too early) So I guess the first newly introduced line ("dracut --regenerate-all --force") of my patch is obsolete then, as the initrds are already there - we just need the directives for ARM. To my understanding, if dracut fails due to space/memory issues, the upgrade would have failed either way. Do you want me to submit a v2 of this patch without the dracut directive? Or should I commit this straight to next, and you cherry-pick it into master? Thanks, and best regards, Peter Müller > > I do not really have much of a preference. The only thing I want to say is that ARM needs to get their shit together and being able to load a regular image instead of asking for extra commands here - or build that into dracut. > > -Michael > >> On 7 Jul 2022, at 07:48, Peter Müller <peter.mueller(a)ipfire.org> wrote: >> >> Hello *, >> >> to my understanding, we do not need to ship "linux-initrd" if we can easily >> rebuild those on the systems anyway. I would prefer the latter, since that >> keeps the update smaller. >> >> This was also raised somewhere in the community a while ago, but I am unable >> to find the correspondent thread at the moment. >> >> How do we proceed here? >> >> Thanks, and best regards, >> Peter Müller >> >> >>> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >>> >>> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >>> --- >>> config/rootfiles/core/169/update.sh | 13 +++++++++++++ >>> 1 file changed, 13 insertions(+) >>> >>> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >>> index 3902e2d45..50f0bd8a4 100644 >>> --- a/config/rootfiles/core/169/update.sh >>> +++ b/config/rootfiles/core/169/update.sh >>> @@ -150,6 +150,19 @@ ldconfig >>> # Apply sysctl changes >>> /etc/init.d/sysctl start >>> >>> +# Regenerate all initrds >>> +dracut --regenerate-all --force >>> +case "$(uname -m)" in >>> + armv*) >>> + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>> + rm /boot/initramfs-${KVER}-ipfire.img >>> + ;; >>> + aarch64) >>> + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>> + # dont remove initramfs because grub need this to boot. >>> + ;; >>> +esac >>> + >>> # Start services >>> telinit u >>> /etc/init.d/firewall restart > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 13:30 ` Peter Müller @ 2022-07-07 13:43 ` Michael Tremer 2022-07-07 13:49 ` Peter Müller 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2022-07-07 13:43 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 3244 bytes --] Hello, > On 7 Jul 2022, at 15:30, Peter Müller <peter.mueller(a)ipfire.org> wrote: > > Hello Michael, > > thanks for your reply. > >> Hello, >> Indeed we don’t need to ship them, we can generate them instead. >> But that has of course some downsides, too: >> * It is slow >> * It is not entirely error-proof (out of disk space, out of memory, system being rebooted too early) > > So I guess the first newly introduced line ("dracut --regenerate-all --force") of > my patch is obsolete then, as the initrds are already there - we just need the directives > for ARM. Those should be shipped, too. Adding more size to the updater when shipping the same stuff multiple times. > To my understanding, if dracut fails due to space/memory issues, the upgrade would have > failed either way. My point was that extracting the update would consume less memory. Disk space constraints still apply unless there is not enough temporary space. > Do you want me to submit a v2 of this patch without the dracut directive? Or should I > commit this straight to next, and you cherry-pick it into master? We should either ship everything, or generate everything. I don’t think a mix is good idea. > Thanks, and best regards, > Peter Müller > >> I do not really have much of a preference. The only thing I want to say is that ARM needs to get their shit together and being able to load a regular image instead of asking for extra commands here - or build that into dracut. >> -Michael >>> On 7 Jul 2022, at 07:48, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>> >>> Hello *, >>> >>> to my understanding, we do not need to ship "linux-initrd" if we can easily >>> rebuild those on the systems anyway. I would prefer the latter, since that >>> keeps the update smaller. >>> >>> This was also raised somewhere in the community a while ago, but I am unable >>> to find the correspondent thread at the moment. >>> >>> How do we proceed here? >>> >>> Thanks, and best regards, >>> Peter Müller >>> >>> >>>> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >>>> >>>> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >>>> --- >>>> config/rootfiles/core/169/update.sh | 13 +++++++++++++ >>>> 1 file changed, 13 insertions(+) >>>> >>>> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >>>> index 3902e2d45..50f0bd8a4 100644 >>>> --- a/config/rootfiles/core/169/update.sh >>>> +++ b/config/rootfiles/core/169/update.sh >>>> @@ -150,6 +150,19 @@ ldconfig >>>> # Apply sysctl changes >>>> /etc/init.d/sysctl start >>>> >>>> +# Regenerate all initrds >>>> +dracut --regenerate-all --force >>>> +case "$(uname -m)" in >>>> + armv*) >>>> + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>> + rm /boot/initramfs-${KVER}-ipfire.img >>>> + ;; >>>> + aarch64) >>>> + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>> + # dont remove initramfs because grub need this to boot. >>>> + ;; >>>> +esac >>>> + >>>> # Start services >>>> telinit u >>>> /etc/init.d/firewall restart ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 13:43 ` Michael Tremer @ 2022-07-07 13:49 ` Peter Müller 2022-07-07 13:53 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Peter Müller @ 2022-07-07 13:49 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 3660 bytes --] Hello Michael, > Hello, > >> On 7 Jul 2022, at 15:30, Peter Müller <peter.mueller(a)ipfire.org> wrote: >> >> Hello Michael, >> >> thanks for your reply. >> >>> Hello, >>> Indeed we don’t need to ship them, we can generate them instead. >>> But that has of course some downsides, too: >>> * It is slow >>> * It is not entirely error-proof (out of disk space, out of memory, system being rebooted too early) >> >> So I guess the first newly introduced line ("dracut --regenerate-all --force") of >> my patch is obsolete then, as the initrds are already there - we just need the directives >> for ARM. > > Those should be shipped, too. Adding more size to the updater when shipping the same stuff multiple times. > >> To my understanding, if dracut fails due to space/memory issues, the upgrade would have >> failed either way. > > My point was that extracting the update would consume less memory. Disk space constraints still apply unless there is not enough temporary space. > >> Do you want me to submit a v2 of this patch without the dracut directive? Or should I >> commit this straight to next, and you cherry-pick it into master? > > We should either ship everything, or generate everything. I don’t think a mix is good idea. agreed. Then, this boils down to an "rm" statement on 32-bit ARM, and I will omit regenerating the initds - that's how Core Update 169 has been thus far, and there were no complaints whatsoever. I will push this straight to next and get back to you shortly... Thanks, and best regards, Peter Müller > >> Thanks, and best regards, >> Peter Müller >> >>> I do not really have much of a preference. The only thing I want to say is that ARM needs to get their shit together and being able to load a regular image instead of asking for extra commands here - or build that into dracut. >>> -Michael >>>> On 7 Jul 2022, at 07:48, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>>> >>>> Hello *, >>>> >>>> to my understanding, we do not need to ship "linux-initrd" if we can easily >>>> rebuild those on the systems anyway. I would prefer the latter, since that >>>> keeps the update smaller. >>>> >>>> This was also raised somewhere in the community a while ago, but I am unable >>>> to find the correspondent thread at the moment. >>>> >>>> How do we proceed here? >>>> >>>> Thanks, and best regards, >>>> Peter Müller >>>> >>>> >>>>> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >>>>> >>>>> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >>>>> --- >>>>> config/rootfiles/core/169/update.sh | 13 +++++++++++++ >>>>> 1 file changed, 13 insertions(+) >>>>> >>>>> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >>>>> index 3902e2d45..50f0bd8a4 100644 >>>>> --- a/config/rootfiles/core/169/update.sh >>>>> +++ b/config/rootfiles/core/169/update.sh >>>>> @@ -150,6 +150,19 @@ ldconfig >>>>> # Apply sysctl changes >>>>> /etc/init.d/sysctl start >>>>> >>>>> +# Regenerate all initrds >>>>> +dracut --regenerate-all --force >>>>> +case "$(uname -m)" in >>>>> + armv*) >>>>> + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>> + rm /boot/initramfs-${KVER}-ipfire.img >>>>> + ;; >>>>> + aarch64) >>>>> + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>> + # dont remove initramfs because grub need this to boot. >>>>> + ;; >>>>> +esac >>>>> + >>>>> # Start services >>>>> telinit u >>>>> /etc/init.d/firewall restart > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 13:49 ` Peter Müller @ 2022-07-07 13:53 ` Michael Tremer 2022-07-07 13:54 ` Peter Müller 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2022-07-07 13:53 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 3908 bytes --] Hello, > On 7 Jul 2022, at 15:49, Peter Müller <peter.mueller(a)ipfire.org> wrote: > > Hello Michael, > >> Hello, >>> On 7 Jul 2022, at 15:30, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>> >>> Hello Michael, >>> >>> thanks for your reply. >>> >>>> Hello, >>>> Indeed we don’t need to ship them, we can generate them instead. >>>> But that has of course some downsides, too: >>>> * It is slow >>>> * It is not entirely error-proof (out of disk space, out of memory, system being rebooted too early) >>> >>> So I guess the first newly introduced line ("dracut --regenerate-all --force") of >>> my patch is obsolete then, as the initrds are already there - we just need the directives >>> for ARM. >> Those should be shipped, too. Adding more size to the updater when shipping the same stuff multiple times. >>> To my understanding, if dracut fails due to space/memory issues, the upgrade would have >>> failed either way. >> My point was that extracting the update would consume less memory. Disk space constraints still apply unless there is not enough temporary space. >>> Do you want me to submit a v2 of this patch without the dracut directive? Or should I >>> commit this straight to next, and you cherry-pick it into master? >> We should either ship everything, or generate everything. I don’t think a mix is good idea. > > agreed. > > Then, this boils down to an "rm" statement on 32-bit ARM, and I will omit regenerating > the initds - that's how Core Update 169 has been thus far, and there were no complaints > whatsoever. > > I will push this straight to next and get back to you shortly... We probably don’t want this in next. That already has c170. > > Thanks, and best regards, > Peter Müller > >>> Thanks, and best regards, >>> Peter Müller >>> >>>> I do not really have much of a preference. The only thing I want to say is that ARM needs to get their shit together and being able to load a regular image instead of asking for extra commands here - or build that into dracut. >>>> -Michael >>>>> On 7 Jul 2022, at 07:48, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>>>> >>>>> Hello *, >>>>> >>>>> to my understanding, we do not need to ship "linux-initrd" if we can easily >>>>> rebuild those on the systems anyway. I would prefer the latter, since that >>>>> keeps the update smaller. >>>>> >>>>> This was also raised somewhere in the community a while ago, but I am unable >>>>> to find the correspondent thread at the moment. >>>>> >>>>> How do we proceed here? >>>>> >>>>> Thanks, and best regards, >>>>> Peter Müller >>>>> >>>>> >>>>>> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >>>>>> >>>>>> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >>>>>> --- >>>>>> config/rootfiles/core/169/update.sh | 13 +++++++++++++ >>>>>> 1 file changed, 13 insertions(+) >>>>>> >>>>>> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >>>>>> index 3902e2d45..50f0bd8a4 100644 >>>>>> --- a/config/rootfiles/core/169/update.sh >>>>>> +++ b/config/rootfiles/core/169/update.sh >>>>>> @@ -150,6 +150,19 @@ ldconfig >>>>>> # Apply sysctl changes >>>>>> /etc/init.d/sysctl start >>>>>> >>>>>> +# Regenerate all initrds >>>>>> +dracut --regenerate-all --force >>>>>> +case "$(uname -m)" in >>>>>> + armv*) >>>>>> + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>>> + rm /boot/initramfs-${KVER}-ipfire.img >>>>>> + ;; >>>>>> + aarch64) >>>>>> + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>>> + # dont remove initramfs because grub need this to boot. >>>>>> + ;; >>>>>> +esac >>>>>> + >>>>>> # Start services >>>>>> telinit u >>>>>> /etc/init.d/firewall restart ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 13:53 ` Michael Tremer @ 2022-07-07 13:54 ` Peter Müller 2022-07-07 13:54 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Peter Müller @ 2022-07-07 13:54 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 4172 bytes --] Hello Michael, > Hello, > >> On 7 Jul 2022, at 15:49, Peter Müller <peter.mueller(a)ipfire.org> wrote: >> >> Hello Michael, >> >>> Hello, >>>> On 7 Jul 2022, at 15:30, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>>> >>>> Hello Michael, >>>> >>>> thanks for your reply. >>>> >>>>> Hello, >>>>> Indeed we don’t need to ship them, we can generate them instead. >>>>> But that has of course some downsides, too: >>>>> * It is slow >>>>> * It is not entirely error-proof (out of disk space, out of memory, system being rebooted too early) >>>> >>>> So I guess the first newly introduced line ("dracut --regenerate-all --force") of >>>> my patch is obsolete then, as the initrds are already there - we just need the directives >>>> for ARM. >>> Those should be shipped, too. Adding more size to the updater when shipping the same stuff multiple times. >>>> To my understanding, if dracut fails due to space/memory issues, the upgrade would have >>>> failed either way. >>> My point was that extracting the update would consume less memory. Disk space constraints still apply unless there is not enough temporary space. >>>> Do you want me to submit a v2 of this patch without the dracut directive? Or should I >>>> commit this straight to next, and you cherry-pick it into master? >>> We should either ship everything, or generate everything. I don’t think a mix is good idea. >> >> agreed. >> >> Then, this boils down to an "rm" statement on 32-bit ARM, and I will omit regenerating >> the initds - that's how Core Update 169 has been thus far, and there were no complaints >> whatsoever. >> >> I will push this straight to next and get back to you shortly... > > We probably don’t want this in next. That already has c170. true, but I cannot push to "master". Is it feasible for you to cherry-pick 5ead33d796b9537bddbc4e2d5d27029de4df001a? Thanks, and best regards, Peter Müller > >> >> Thanks, and best regards, >> Peter Müller >> >>>> Thanks, and best regards, >>>> Peter Müller >>>> >>>>> I do not really have much of a preference. The only thing I want to say is that ARM needs to get their shit together and being able to load a regular image instead of asking for extra commands here - or build that into dracut. >>>>> -Michael >>>>>> On 7 Jul 2022, at 07:48, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>>>>> >>>>>> Hello *, >>>>>> >>>>>> to my understanding, we do not need to ship "linux-initrd" if we can easily >>>>>> rebuild those on the systems anyway. I would prefer the latter, since that >>>>>> keeps the update smaller. >>>>>> >>>>>> This was also raised somewhere in the community a while ago, but I am unable >>>>>> to find the correspondent thread at the moment. >>>>>> >>>>>> How do we proceed here? >>>>>> >>>>>> Thanks, and best regards, >>>>>> Peter Müller >>>>>> >>>>>> >>>>>>> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >>>>>>> >>>>>>> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >>>>>>> --- >>>>>>> config/rootfiles/core/169/update.sh | 13 +++++++++++++ >>>>>>> 1 file changed, 13 insertions(+) >>>>>>> >>>>>>> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >>>>>>> index 3902e2d45..50f0bd8a4 100644 >>>>>>> --- a/config/rootfiles/core/169/update.sh >>>>>>> +++ b/config/rootfiles/core/169/update.sh >>>>>>> @@ -150,6 +150,19 @@ ldconfig >>>>>>> # Apply sysctl changes >>>>>>> /etc/init.d/sysctl start >>>>>>> >>>>>>> +# Regenerate all initrds >>>>>>> +dracut --regenerate-all --force >>>>>>> +case "$(uname -m)" in >>>>>>> + armv*) >>>>>>> + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>>>> + rm /boot/initramfs-${KVER}-ipfire.img >>>>>>> + ;; >>>>>>> + aarch64) >>>>>>> + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>>>> + # dont remove initramfs because grub need this to boot. >>>>>>> + ;; >>>>>>> +esac >>>>>>> + >>>>>>> # Start services >>>>>>> telinit u >>>>>>> /etc/init.d/firewall restart > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Core Update 169: Regenerate initrds and save space on ARM 2022-07-07 13:54 ` Peter Müller @ 2022-07-07 13:54 ` Michael Tremer 2022-07-07 13:58 ` [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot Peter Müller 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2022-07-07 13:54 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 4413 bytes --] Please just send a patch to the list :) > On 7 Jul 2022, at 15:54, Peter Müller <peter.mueller(a)ipfire.org> wrote: > > Hello Michael, > >> Hello, >>> On 7 Jul 2022, at 15:49, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>> >>> Hello Michael, >>> >>>> Hello, >>>>> On 7 Jul 2022, at 15:30, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>>>> >>>>> Hello Michael, >>>>> >>>>> thanks for your reply. >>>>> >>>>>> Hello, >>>>>> Indeed we don’t need to ship them, we can generate them instead. >>>>>> But that has of course some downsides, too: >>>>>> * It is slow >>>>>> * It is not entirely error-proof (out of disk space, out of memory, system being rebooted too early) >>>>> >>>>> So I guess the first newly introduced line ("dracut --regenerate-all --force") of >>>>> my patch is obsolete then, as the initrds are already there - we just need the directives >>>>> for ARM. >>>> Those should be shipped, too. Adding more size to the updater when shipping the same stuff multiple times. >>>>> To my understanding, if dracut fails due to space/memory issues, the upgrade would have >>>>> failed either way. >>>> My point was that extracting the update would consume less memory. Disk space constraints still apply unless there is not enough temporary space. >>>>> Do you want me to submit a v2 of this patch without the dracut directive? Or should I >>>>> commit this straight to next, and you cherry-pick it into master? >>>> We should either ship everything, or generate everything. I don’t think a mix is good idea. >>> >>> agreed. >>> >>> Then, this boils down to an "rm" statement on 32-bit ARM, and I will omit regenerating >>> the initds - that's how Core Update 169 has been thus far, and there were no complaints >>> whatsoever. >>> >>> I will push this straight to next and get back to you shortly... >> We probably don’t want this in next. That already has c170. > > true, but I cannot push to "master". Is it feasible for you to cherry-pick 5ead33d796b9537bddbc4e2d5d27029de4df001a? > > Thanks, and best regards, > Peter Müller >>> >>> Thanks, and best regards, >>> Peter Müller >>> >>>>> Thanks, and best regards, >>>>> Peter Müller >>>>> >>>>>> I do not really have much of a preference. The only thing I want to say is that ARM needs to get their shit together and being able to load a regular image instead of asking for extra commands here - or build that into dracut. >>>>>> -Michael >>>>>>> On 7 Jul 2022, at 07:48, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>>>>>> >>>>>>> Hello *, >>>>>>> >>>>>>> to my understanding, we do not need to ship "linux-initrd" if we can easily >>>>>>> rebuild those on the systems anyway. I would prefer the latter, since that >>>>>>> keeps the update smaller. >>>>>>> >>>>>>> This was also raised somewhere in the community a while ago, but I am unable >>>>>>> to find the correspondent thread at the moment. >>>>>>> >>>>>>> How do we proceed here? >>>>>>> >>>>>>> Thanks, and best regards, >>>>>>> Peter Müller >>>>>>> >>>>>>> >>>>>>>> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >>>>>>>> >>>>>>>> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >>>>>>>> --- >>>>>>>> config/rootfiles/core/169/update.sh | 13 +++++++++++++ >>>>>>>> 1 file changed, 13 insertions(+) >>>>>>>> >>>>>>>> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >>>>>>>> index 3902e2d45..50f0bd8a4 100644 >>>>>>>> --- a/config/rootfiles/core/169/update.sh >>>>>>>> +++ b/config/rootfiles/core/169/update.sh >>>>>>>> @@ -150,6 +150,19 @@ ldconfig >>>>>>>> # Apply sysctl changes >>>>>>>> /etc/init.d/sysctl start >>>>>>>> >>>>>>>> +# Regenerate all initrds >>>>>>>> +dracut --regenerate-all --force >>>>>>>> +case "$(uname -m)" in >>>>>>>> + armv*) >>>>>>>> + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>>>>> + rm /boot/initramfs-${KVER}-ipfire.img >>>>>>>> + ;; >>>>>>>> + aarch64) >>>>>>>> + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire >>>>>>>> + # dont remove initramfs because grub need this to boot. >>>>>>>> + ;; >>>>>>>> +esac >>>>>>>> + >>>>>>>> # Start services >>>>>>>> telinit u >>>>>>>> /etc/init.d/firewall restart ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot 2022-07-07 13:54 ` Michael Tremer @ 2022-07-07 13:58 ` Peter Müller 2022-07-07 14:02 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Peter Müller @ 2022-07-07 13:58 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 919 bytes --] On 64-bit ARM, this is still needed for booting. Since the initrds were already shipped with the updater, there is no need to regenerate them locally again. https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> --- config/rootfiles/core/169/update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh index 3902e2d45..dc7a2a18a 100644 --- a/config/rootfiles/core/169/update.sh +++ b/config/rootfiles/core/169/update.sh @@ -150,6 +150,13 @@ ldconfig # Apply sysctl changes /etc/init.d/sysctl start +# Delete unused initrd on 32-bit ARM to save space in /boot +case "$(uname -m)" in + armv*) + rm /boot/initramfs-${KVER}-ipfire.img + ;; +esac + # Start services telinit u /etc/init.d/firewall restart -- 2.30.2 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot 2022-07-07 13:58 ` [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot Peter Müller @ 2022-07-07 14:02 ` Michael Tremer 2022-07-07 14:05 ` Peter Müller 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2022-07-07 14:02 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1108 bytes --] Why do we ship this in the first place, then? > On 7 Jul 2022, at 15:58, Peter Müller <peter.mueller(a)ipfire.org> wrote: > > On 64-bit ARM, this is still needed for booting. Since the initrds were > already shipped with the updater, there is no need to regenerate them > locally again. > > https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 > > Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> > --- > config/rootfiles/core/169/update.sh | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh > index 3902e2d45..dc7a2a18a 100644 > --- a/config/rootfiles/core/169/update.sh > +++ b/config/rootfiles/core/169/update.sh > @@ -150,6 +150,13 @@ ldconfig > # Apply sysctl changes > /etc/init.d/sysctl start > > +# Delete unused initrd on 32-bit ARM to save space in /boot > +case "$(uname -m)" in > + armv*) > + rm /boot/initramfs-${KVER}-ipfire.img > + ;; > +esac > + > # Start services > telinit u > /etc/init.d/firewall restart > -- > 2.30.2 > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot 2022-07-07 14:02 ` Michael Tremer @ 2022-07-07 14:05 ` Peter Müller 2022-07-07 14:11 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Peter Müller @ 2022-07-07 14:05 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1188 bytes --] This is a question for Arne, I'm afraid... > Why do we ship this in the first place, then? > >> On 7 Jul 2022, at 15:58, Peter Müller <peter.mueller(a)ipfire.org> wrote: >> >> On 64-bit ARM, this is still needed for booting. Since the initrds were >> already shipped with the updater, there is no need to regenerate them >> locally again. >> >> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >> >> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >> --- >> config/rootfiles/core/169/update.sh | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >> index 3902e2d45..dc7a2a18a 100644 >> --- a/config/rootfiles/core/169/update.sh >> +++ b/config/rootfiles/core/169/update.sh >> @@ -150,6 +150,13 @@ ldconfig >> # Apply sysctl changes >> /etc/init.d/sysctl start >> >> +# Delete unused initrd on 32-bit ARM to save space in /boot >> +case "$(uname -m)" in >> + armv*) >> + rm /boot/initramfs-${KVER}-ipfire.img >> + ;; >> +esac >> + >> # Start services >> telinit u >> /etc/init.d/firewall restart >> -- >> 2.30.2 >> > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot 2022-07-07 14:05 ` Peter Müller @ 2022-07-07 14:11 ` Michael Tremer 0 siblings, 0 replies; 13+ messages in thread From: Michael Tremer @ 2022-07-07 14:11 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1357 bytes --] Okay, I merged this into master and core169. > On 7 Jul 2022, at 16:05, Peter Müller <peter.mueller(a)ipfire.org> wrote: > > This is a question for Arne, I'm afraid... > >> Why do we ship this in the first place, then? >>> On 7 Jul 2022, at 15:58, Peter Müller <peter.mueller(a)ipfire.org> wrote: >>> >>> On 64-bit ARM, this is still needed for booting. Since the initrds were >>> already shipped with the updater, there is no need to regenerate them >>> locally again. >>> >>> https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 >>> >>> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org> >>> --- >>> config/rootfiles/core/169/update.sh | 7 +++++++ >>> 1 file changed, 7 insertions(+) >>> >>> diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/update.sh >>> index 3902e2d45..dc7a2a18a 100644 >>> --- a/config/rootfiles/core/169/update.sh >>> +++ b/config/rootfiles/core/169/update.sh >>> @@ -150,6 +150,13 @@ ldconfig >>> # Apply sysctl changes >>> /etc/init.d/sysctl start >>> >>> +# Delete unused initrd on 32-bit ARM to save space in /boot >>> +case "$(uname -m)" in >>> + armv*) >>> + rm /boot/initramfs-${KVER}-ipfire.img >>> + ;; >>> +esac >>> + >>> # Start services >>> telinit u >>> /etc/init.d/firewall restart >>> -- >>> 2.30.2 >>> ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2022-07-07 14:11 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-07-07 5:46 [PATCH] Core Update 169: Regenerate initrds and save space on ARM Peter Müller 2022-07-07 5:48 ` Peter Müller 2022-07-07 13:19 ` Michael Tremer 2022-07-07 13:30 ` Peter Müller 2022-07-07 13:43 ` Michael Tremer 2022-07-07 13:49 ` Peter Müller 2022-07-07 13:53 ` Michael Tremer 2022-07-07 13:54 ` Peter Müller 2022-07-07 13:54 ` Michael Tremer 2022-07-07 13:58 ` [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot Peter Müller 2022-07-07 14:02 ` Michael Tremer 2022-07-07 14:05 ` Peter Müller 2022-07-07 14:11 ` Michael Tremer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox