mirror of
https://github.com/philmmanjaro/alma.git
synced 2025-07-26 23:19:29 +02:00
Clear the root password
This commit is contained in:
parent
b3449b6b3d
commit
b92219af41
@ -249,6 +249,14 @@ fn create(command: args::CreateCommand) -> anyhow::Result<()> {
|
|||||||
);
|
);
|
||||||
debug!("fstab:\n{}", fstab);
|
debug!("fstab:\n{}", fstab);
|
||||||
fs::write(mount_point.path().join("etc/fstab"), fstab).context("fstab error")?;
|
fs::write(mount_point.path().join("etc/fstab"), fstab).context("fstab error")?;
|
||||||
|
|
||||||
|
arch_chroot
|
||||||
|
.execute()
|
||||||
|
.arg(mount_point.path())
|
||||||
|
.args(&["passwd", "-d", "root"])
|
||||||
|
.run()
|
||||||
|
.context("Failed to delete the root password")?;
|
||||||
|
|
||||||
if !presets.aur_packages.is_empty() {
|
if !presets.aur_packages.is_empty() {
|
||||||
arch_chroot
|
arch_chroot
|
||||||
.execute()
|
.execute()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user