Philippe Grégoire
69c6de9f9c
explorer/os: get ID from /etc/os-release
...
/etc/os-release was introduced by systemd[1] and is now
more and more common; even on systems without systemd (e.g. lede).
In addition to detecting the OS based on specific attributes,
this file provides the ID marker to describe the OS.
This commit adds support for OS detection via /etc/os-release.
According to [2], it is already lowercase.
[1] http://0pointer.de/blog/projects/os-release
[2] https://www.freedesktop.org/software/systemd/man/os-release.html
8 years ago
Nico Schottelius
260303dd14
Fix gpasswd call in __user_groups: order incorrect
...
From the manpage:
-a, --add user
Add the user to the named group.
-d, --delete user
Remove the user from the named group.
8 years ago
Ander Punnar
b7b1101f11
always exit 0
8 years ago
Dominique Roux
5ccfec9c18
Updated to docker-compose version 1.14
8 years ago
Ander Punnar
6bfe02094d
year is 2017
8 years ago
Ander Punnar
2c56622eeb
check file first
8 years ago
Ander Punnar
c706b9eefb
check current timezone before doing anything
8 years ago
Darko Poljak
e2a1519332
Merge inventory from beta branch.
8 years ago
Darko Poljak
126a1812a5
Fix parallel object prepare and run steps. Add nonparallel type marker.
8 years ago
Darko Poljak
31899b2263
Add missing shebangs.
8 years ago
Steven Armstrong
d9a358bdf3
add forgotten symlink
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Ander Punnar
6a6716035b
one space too much
8 years ago
Ander Punnar
0e8302c204
if no --source, then create only if there's no file
8 years ago
Ander Punnar
49f9760eac
+x
8 years ago
Ander Punnar
df437851f0
add -e
8 years ago
Ander Punnar
e4d9f78349
grep fixed string
8 years ago
Ander Punnar
c052e507eb
shellcheck __apt_mark
8 years ago
Darko Poljak
62378dc8b9
Change shebang to #!/bin/sh -e
8 years ago
Darko Poljak
fc97381c6e
Add missing shebang.
8 years ago
Darko Poljak
9312bcb6b0
chmod +x *manifest *gencode-*
8 years ago
Steven Armstrong
574f36f593
fix order of arguments
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
b8fcd30a37
support for bind mounts
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
c740c96890
set log level for cdist config based on env vars
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
1627b58cfc
for bind mount also have to prefix device
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
e74d2be2d4
add support for bind mounting
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
efd9351500
document new parameters: device, minor
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
86a61bbcff
need to pass a known suffix from outside
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
058e4d757b
disabel debug log
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
a495a20d95
uefi support
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
d34843347a
add __install_directory type
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
f9d371c6e3
use sysrq to reboot
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
42e197a5ba
use the force when creating swap
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
9ee0de7c8b
make uefi boot work
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
2ce00f3357
fix syntax error
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
8305477e01
fix typo
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
ce82e32c59
handle resolv.conf
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
4547d2efa1
properly escape single quotes
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
aea9747918
mount/umounting a chroot should not mess with resolv.conf at all
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
73cad9dee2
backcompat
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
1d42e4afcb
bind mount /etc/resolv.conf instead of overwriting/removing
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
c6e4888c84
support for centos7
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
fd6258c90e
unsure apt index is up2date
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
d05f11b0b8
deal with that stinkin cdist marker thinggy
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
9ad203c744
deal with that stinkin cdist marker thinggy
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
bb62787c7c
deal with that stinkin cdist marker thinggy
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
f97e6c42c7
no point generating grub.conf at this time, there is no kernel installed yet
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
5417471dff
add support for centos
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
2bd48f1c8d
make nuking mdadm/lvm actually work
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
49dfcf4885
first remove lvm, then mdadm
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
c1141453fe
fix quoting
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago