commit: 9e2d04532a04f5e0f6bdecb6e810e871d29a925a Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Sat Oct 12 21:58:45 2024 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Sat Oct 12 21:58:45 2024 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=9e2d0453
Make the fstab Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> targets/support/diskimage-installation.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/targets/support/diskimage-installation.sh b/targets/support/diskimage-installation.sh index a7c042ef..30437257 100755 --- a/targets/support/diskimage-installation.sh +++ b/targets/support/diskimage-installation.sh @@ -16,6 +16,19 @@ if [[ $(readlink /etc/portage/make.profile) == *systemd* ]] ; then # generic - an image with no means of logging in... needs postprocessing # no services are started +echo "Generating /etc/fstab" +cat > /etc/fstab <<END +# /etc/fstab: static file system information. +# +# See the manpage fstab(5) for more information. +# +# <fs> <mountpoint> <type> <opts> <dump/pass> + +LABEL=gentooroot / xfs noatime,rw 0 1 +LABEL=gentooefi /boot vfat defaults 1 2 + +END + echo "Running systemctl preset-all" systemctl preset-all || die "Running systemctl preset-all failed"