mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
RHEL 6: sysprep: remove /etc/shadow note
Once RHBZ#1160261 is in and we can require the augeas providing it, virt-sysprep will remove users from /etc/shadow too; hence, remove the documentation note (and the code comment) mentioning that issue. Related to RHBZ#1138630.
This commit is contained in:
@@ -46,10 +46,6 @@ let user_account_perform g root =
|
||||
let username =
|
||||
let i = String.rindex userpath '/' in
|
||||
String.sub userpath (i+1) (String.length userpath -i-1) in
|
||||
(* XXX Augeas doesn't yet have a lens for /etc/shadow, so the
|
||||
* next line currently does nothing, but should start to
|
||||
* work in a future version.
|
||||
*)
|
||||
g#aug_rm (sprintf "/files/etc/shadow/%s" username);
|
||||
g#aug_rm (sprintf "/files/etc/group/%s" username);
|
||||
g#rm_rf ("/home/" ^ username)
|
||||
@@ -68,10 +64,6 @@ let op = {
|
||||
pod_description = Some (s_"\
|
||||
Remove all the user accounts and their home directories.
|
||||
The \"root\" account is not removed.");
|
||||
pod_notes = Some (s_"\
|
||||
Currently this does not remove the user accounts from
|
||||
C</etc/shadow>. This is because there is no lens for
|
||||
the shadow password file in Augeas.");
|
||||
perform_on_filesystems = Some user_account_perform;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user