diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-18 03:44:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-18 03:44:10 +0000 |
commit | 31b588d87c40d0d4d1584e4b6203d8bd90eec50a (patch) | |
tree | 88b3822c7d89b2d8f8f2a218b084f79e9b7910db /globetrotter | |
parent | 5179cefe0d92b23099e7b491e80eecd5f01bc794 (diff) | |
download | drakx-31b588d87c40d0d4d1584e4b6203d8bd90eec50a.tar drakx-31b588d87c40d0d4d1584e4b6203d8bd90eec50a.tar.gz drakx-31b588d87c40d0d4d1584e4b6203d8bd90eec50a.tar.bz2 drakx-31b588d87c40d0d4d1584e4b6203d8bd90eec50a.tar.xz drakx-31b588d87c40d0d4d1584e4b6203d8bd90eec50a.zip |
- use labels for home and packages partitions too
- mount packages partition in read-only mode
Diffstat (limited to 'globetrotter')
-rwxr-xr-x | globetrotter/make_live | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/globetrotter/make_live b/globetrotter/make_live index 6c3d0257c..067750374 100755 --- a/globetrotter/make_live +++ b/globetrotter/make_live @@ -289,6 +289,18 @@ fs::write_fstab($all_hds, $::prefix); append_to_file("$::prefix/etc/fstab", "none /dev/pts devpts mode=0620 0 0"); doRootSubst("$::prefix/etc/fstab"); +my ($home) = grep { $_->{mntpoint} eq "/home" } @parts; +my ($mnt_pkgs) = grep { $_->{mntpoint} eq "/mnt/packages" } @parts; +run_program::run('tune2fs', '-L', "MDK-HOME", "/dev/$home->{device}") if $home; +run_program::run('tune2fs', '-L', "MDK-PKGS", "/dev/$mnt_pkgs->{device}") if $mnt_pkgs; + +substInFile { + s!defaults\s!defaults,ro ! if m!/mnt/packages!; + s!/dev/$home->{device}!LABEL=MDK-HOME!g; + s!/dev/$mnt_pkgs->{device}!LABEL=MDK-PKGS!g; +} "$::prefix/etc/fstab"; + + #------------------------------------------------------------------- #- Bootloader print "Configuring bootloader\n"; |