Basic root filesystem maintenance module
PATCH 1/1 Basic root filesystem maintenance module
Just the other day I rebooted with rdbreak with the idea to shrink the root fs a little, only to find that none of the fack/resize/tune tools for ext3 were actually in the initramfs. Here is a first attempt at a basic dracut module that includes those. Worked in brief testing.
Not really attached to the patch itself, but I would like to have a way to include those basic tools one way or the other.
Cheers
Yanko
--- dracut.spec | 11 +++++++++++ modules.d/60maint/check | 2 ++ modules.d/60maint/install | 2 ++ 3 files changed, 15 insertions(+), 0 deletions(-) create mode 100755 modules.d/60maint/check create mode 100755 modules.d/60maint/install
dracut.spec +11 -0
@@ -82,6 +82,13 @@ Requires: %{name}-network = %{version}-%{release} This package requires everything which is needed to build a generic all purpose initramfs with dracut. +%package maint +Summary: dracut module for basic root filesystem maintenance +Requires: e2fsprogs, util-linux-ng + +%description maint +This package requires everything needed for basic root filesystem maintenance +from within the initramfs (currently only ext234) %package kernel Summary: Metapackage to build generic initramfs with dracut with only kernel modules
@@ -183,6 +190,10 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,0755) %doc README.generic +%files maint +%defattr(-,root,root,0755) +%{_datadir}/dracut/modules.d/60maint + %files tools %defattr(-,root,root,0755) %doc COPYING NEWS
modules.d/60maint/check new file +2 -0
@@ -0,0 +1,2 @@ +#!/bin/bash +which fsck fsck.ext4 fsck.ext2 fsck.ext3 resize2fs tune2fs >/dev/null
modules.d/60maint/install new file +2 -0
@@ -0,0 +1,2 @@ +#!/bin/bash +dracut_install fsck fsck.ext4 fsck.ext2 fsck.ext3 resize2fs tune2fs
Signature · 1 line
1.6.5.1
Quoted 4 lines · Yanko Kaneti
Just the other day I rebooted with rdbreak with the idea to shrink the root fs a little, only to find that none of the fack/resize/tune tools for ext3 were actually in the initramfs. Here is a first attempt at a basic dracut module that includes those. Worked in brief testing.
Not a bad idea! Just a thought: Why not just add these to the debug module?
Regards,
Philippe
Quoted 60 lines
Not really attached to the patch itself, but I would like to have a way to include those basic tools one way or the other.
Cheers
Yanko--- dracut.spec | 11 +++++++++++ modules.d/60maint/check | 2 ++ modules.d/60maint/install | 2 ++ 3 files changed, 15 insertions(+), 0 deletions(-) create mode 100755 modules.d/60maint/check create mode 100755 modules.d/60maint/installdracut.spec +11
-0@@ -82,6 +82,13 @@ Requires: %{name}-network = %{version}-%{release} This package requires everything which is needed to build a generic all purpose initramfs with dracut. +%package maint +Summary: dracut module for basic root filesystem maintenance +Requires: e2fsprogs, util-linux-ng + +%description maint +This package requires everything needed for basic root filesystem maintenance +from within the initramfs (currently only ext234) %package kernel Summary: Metapackage to build generic initramfs with dracut with only kernel modules@@ -183,6 +190,10 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,0755) %doc README.generic +%files maint +%defattr(-,root,root,0755) +%{_datadir}/dracut/modules.d/60maint + %files tools %defattr(-,root,root,0755) %doc COPYING NEWSmodules.d/60maint/check new file +2
-0@@ -0,0 +1,2 @@ +#!/bin/bash +which fsck fsck.ext4 fsck.ext2 fsck.ext3 resize2fs tune2fs >/dev/nullmodules.d/60maint/install new file +2
-0@@ -0,0 +1,2 @@ +#!/bin/bash +dracut_install fsck fsck.ext4 fsck.ext2 fsck.ext3 resize2fs tune2fs
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Seewer Philippe
Quoted 1 line · Yanko Kaneti
Just the other day I rebooted with rdbreak with the idea to shrink
the
Quoted 1 line
root fs a little, only to find that none of the fack/resize/tune
tools
Quoted 1 line
for ext3 were actually in the initramfs. Here is a first attempt at
a
Quoted 1 line
basic dracut module that includes those. Worked in brief testing.
Not a bad idea! Just a thought: Why not just add these to the debug module?
As far as I understand its off by default which would have also foiled my initial uninformed attempt at resizing. I kinda expected a generic initrd to have some basic fs maintenance tools.
Quoted 70 lines
Quoted 3 lines
Not really attached to the patch itself, but I would like to have a
way
Quoted 18 lines
to include those basic tools one way or the other.
Cheers
Yanko--- dracut.spec | 11 +++++++++++ modules.d/60maint/check | 2 ++ modules.d/60maint/install | 2 ++ 3 files changed, 15 insertions(+), 0 deletions(-) create mode 100755 modules.d/60maint/check create mode 100755 modules.d/60maint/installdracut.spec +0
-0dracut.spec Requires: %{name}-network = %{version}-%{release} · line 90
Quoted 9 lines
dracut.spec +6
-0@@ -82,6 +82,13 @@ Requires: %{name}-network = %{version}-%{release} This package requires everything which is needed to build a generic all purpose initramfs with dracut. +%package maint +Summary: dracut module for basic root filesystem maintenance +Requires: e2fsprogs, util-linux-ng + +%description maint +This package requires everything needed for basic root filesystemmaintenance
dracut.spec Requires: %{name}-network = %{version}-%{release}
Quoted 4 lines
dracut.spec +1
-0+from within the initramfs (currently only ext234) %package kernel Summary: Metapackage to build generic initramfs with dracut withonly kernel modules
Quoted 26 lines
dracut.spec +4
-0@@ -183,6 +190,10 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,0755) %doc README.generic +%files maint +%defattr(-,root,root,0755) +%{_datadir}/dracut/modules.d/60maint + %files tools %defattr(-,root,root,0755) %doc COPYING NEWSmodules.d/60maint/check new file +2
-0@@ -0,0 +1,2 @@ +#!/bin/bash +which fsck fsck.ext4 fsck.ext2 fsck.ext3 resize2fs tune2fs
/dev/nullmodules.d/60maint/install new file +0
-0modules.d/60maint/install line 2
Quoted 2 lines
modules.d/60maint/install new file +2
-0@@ -0,0 +1,2 @@ +#!/bin/bash +dracut_install fsck fsck.ext4 fsck.ext2 fsck.ext3 resize2fs tune2fs--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html