diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-17 17:36:11 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-17 17:36:11 +0000 |
commit | c19c88c2f89f2d26cc2809eaee366acf80adf535 (patch) | |
tree | d41dc288cc3f77d9c18ffe54da05da44b3a1cd0b /move | |
parent | 52e9d06748b40b61c2dfe3535b38c9050fa00aa4 (diff) | |
download | drakx-backup-do-not-use-c19c88c2f89f2d26cc2809eaee366acf80adf535.tar drakx-backup-do-not-use-c19c88c2f89f2d26cc2809eaee366acf80adf535.tar.gz drakx-backup-do-not-use-c19c88c2f89f2d26cc2809eaee366acf80adf535.tar.bz2 drakx-backup-do-not-use-c19c88c2f89f2d26cc2809eaee366acf80adf535.tar.xz drakx-backup-do-not-use-c19c88c2f89f2d26cc2809eaee366acf80adf535.zip |
don't use shadow passwords since pwconv overwrites /etc/shadow hence contents will be lost for usb key
Diffstat (limited to 'move')
-rw-r--r-- | move/data/keyfiles | 1 | ||||
-rwxr-xr-x | move/make_live | 5 | ||||
-rw-r--r-- | move/move.pm | 3 |
3 files changed, 8 insertions, 1 deletions
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; } |