You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
422 B
12 lines
422 B
8 months ago
|
#!/bin/bash
|
||
|
#
|
||
|
# Puts the installed system into OEM configuration mode. Argument 1 is the
|
||
|
# path to the installed system's root directory.
|
||
|
|
||
|
# Install the OEM configuration for Calamares
|
||
|
tar xvzf /etc/calamares/oemconfig.tar.gz -C "$1" --strip-components=2;
|
||
|
|
||
|
# Enable passwordless sudo for the OEM user, making sure this can be undone later
|
||
|
mv "$1"/etc/sudoers "$1"/etc/sudoers.orig
|
||
|
mv "$1"/etc/sudoers.oem "$1"/etc/sudoers
|