From c19c88c2f89f2d26cc2809eaee366acf80adf535 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 17 Nov 2003 17:36:11 +0000 Subject: don't use shadow passwords since pwconv overwrites /etc/shadow hence contents will be lost for usb key --- move/data/keyfiles | 1 - move/make_live | 5 +++++ move/move.pm | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/move/data/keyfiles b/move/data/keyfiles index a4b8677bf..230e5f788 100644 --- a/move/data/keyfiles +++ b/move/data/keyfiles @@ -4,7 +4,6 @@ /etc/modules.conf /etc/passwd /etc/resolv.conf -/etc/shadow /etc/sudoers /etc/cups/classes.conf /etc/cups/client.conf diff --git a/move/make_live b/move/make_live index 734155ce4..4cb5a729c 100755 --- a/move/make_live +++ b/move/make_live @@ -80,3 +80,8 @@ substInFile { #- /lib is ro, for the moment we don't save, we'll see later if we may want to save (using /var/dev-state for example) s|.*lib/dev-state.*||; } "$::prefix/etc/devfsd.conf"; + +substInFile { + #- don't use shadow passwords since pwconv overwrites /etc/shadow hence contents will be lost for usb key + s|\s*shadow||; +} "$::prefix/etc/pam.d/system-auth"; diff --git a/move/move.pm b/move/move.pm index 597dbabcb..589bf996f 100644 --- a/move/move.pm +++ b/move/move.pm @@ -116,6 +116,9 @@ drakx_stuff: $o->{orderedSteps} = [ qw(selectLanguage handleI18NClp acceptLicense verifyKey selectMouse selectKeyboard startMove) ]; $o->{steps}{first} = $o->{orderedSteps}[0]; + #- don't use shadow passwords since pwconv overwrites /etc/shadow hence contents will be lost for usb key + delete $o->{authentication}{shadow}; + member($_, @ALLOWED_LANGS) or delete $lang::langs{$_} foreach keys %lang::langs; } -- cgit v1.2.1