Skip to content

Commit f5cd483

Browse files
author
Bernhard Landauer
authored
Merge pull request #3 from Shells-com/master
merge shells master
2 parents f9fc86a + f5c5d7c commit f5cd483

File tree

6 files changed

+38
-13
lines changed

6 files changed

+38
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For list of currently available builds, take a look at [official_images.txt](htt
1414

1515
# Submit/maintain your distribution
1616

17-
Shells wants to help Linux community as much as it can, so if you would like to see your own distribution on the list, submit PR with it and we will gladly merge it. Be sure to read about some simple rules around how to build images for Shells at [os_requirements.txt](https://github.com/Shells-com/linux-scripts/blob/master/os_requirements.txt).
17+
Shells wants to help Linux community as much as it can, so if you would like to see your own distribution on the list, submit PR with it and we will gladly merge it. Be sure to read about some simple rules around how to build images for Shells at [os_requirements.md](https://github.com/Shells-com/linux-scripts/blob/master/os_requirements.md).
1818

1919
# Testing
2020

os_requirements.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
If you want to submit and/or maintain distribution of your choice for official Shells build, you must meet the following criteria:
2+
3+
* Make sure image is ready for Shells infrastructure (look for example into other OS build scripts here in repository).
4+
* No password for users (we disable the passwords, enabled passwordless sudo and passwordless polkit auth in firstrun script, so keep that in mind).
5+
* Set user to autologin (we try to achieve this in firstrun script but if you see difference not applying for your OS, be sure to do it).
6+
* Disable power saving (screensavers, sleep, automatic logout etc).
7+
* Disable logout option.
8+
* Be sure to have in your image spice-vdagent and qemu-guest-agent.
9+
10+
## Naming
11+
12+
All images are typically named as `distribution-version-variation`. For
13+
example Ubuntu Focal with Ubuntu Desktop installed would be called
14+
`ubuntu-focal-ubuntu-desktop`. All images providing a desktop environment must
15+
end in `-desktop`.
16+
17+
## Custom kernel
18+
19+
By default Shells boots all images with the Shells kernel, which is a LTS
20+
vanilla kernel built by the Shells team. This kernel comes with an initrd that
21+
will perform a number of operations prior to booting the OS, such as ensuring
22+
the modules are installed for the running kernel, resizing the disk partition
23+
to use the whole disk, setup a swap partition, etc.
24+
25+
You can however supply your own kernel but will need to ensure the following:
26+
27+
* The image must be a 8GB or less BIOS-bootable bootable partition
28+
* On boot, you should check if the disk is larger than the partition(s) cover,
29+
and resize the disk appropriately. If you have a swap partition you may
30+
consider moving it toward the end of the disk.
31+
* Make sure you have the virtio modules enabled in your kernel, as well as
32+
anything required to run qxl if doing an desktop image.
33+

os_requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

oscfg/manjaro.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ manjaro_cfg() {
1818
run pacman -Syu --noconfirm
1919
run pacman-mirrors -f 15
2020

21-
run pacman -S --noconfirm base systemd-sysvcompat iputils inetutils iproute2 sudo qemu-guest-agent
21+
run pacman -Syy --noconfirm base systemd-sysvcompat iputils inetutils iproute2 sudo qemu-guest-agent
2222

2323
# make sudo available without password (default for key auth)
2424
echo "%shellsuser ALL=(ALL) NOPASSWD: ALL" > "$WORK/etc/sudoers.d/01-shells" & chmod 440 "$WORK/etc/sudoers.d/01-shells"

scripts/base.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ add_firstrun() {
154154
AFTER="systemd-networkd-wait-online.service"
155155
fi
156156

157-
if [ -d "$WORK/lib/systemd/system" ]; then
157+
if [ -d "$WORK/usr/lib/systemd/system" ]; then
158158
# systemd method
159-
cat >"$WORK/lib/systemd/system/cloud-firstrun.service" <<EOF
159+
cat >"$WORK/usr/lib/systemd/system/cloud-firstrun.service" <<EOF
160160
[Unit]
161161
Description=Cloud firstrun handler
162162
ConditionFileIsExecutable=/.firstrun.sh

scripts/linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ResultActive=yes
2222
EOF
2323
elif [ -d "$WORK/etc/polkit-1/rules.d/" ]; then
2424
cat >"$WORK/etc/polkit-1/rules.d/49-nopasswd_shells.rules" <<EOF
25-
#rules for all distros
25+
// rules for all distros
2626
polkit.addRule(function(action, subject) {
2727
if (subject.isInGroup("shellsuser")) {
2828
return polkit.Result.YES;

0 commit comments

Comments
 (0)