Commit Graph

163 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 8ce4ab4927 sysmocom-backup-data: Avoid an absolute symlink to fix restoring
When restoring the backup the rootfs is mounted in /rootfs/data
and the symlink to the real file would then not work. Attempt to
change the directory first to get a relative symlink.

Untested change and needed for rauc
2015-11-20 21:45:34 +00:00
Jan Luebbe 8e104ac413 sysmocom-configure: add simple framework to run configuration scripts
The configuration scripts are named for the systemd units for which they
generate configuration files. The generator causes them to run before
those units are started.
2015-10-13 17:36:42 +02:00
Jan Luebbe 4d66b042e4 sysmocom-backup-data: do not enable the restore service automatically
This is needed for an upcoming change which will restore the backup from
the initramfs.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-09-08 14:36:03 +02:00
Henning Heinold 8fd695e69b image-static-dns.inc: fix several items
* use printf instead of echo
* add missing /etc/ for the udhcpc-default file
* add log-entries for all shell actions in the
  post image setup
* generate comments in all files which are touched

Related: SYS#1774
2015-08-20 08:05:12 +02:00
Henning Heinold 4d0adcb963 netcat-openbsd: adding the recipe from meta-networking in meta-openembedded
Fixes: SYS#1962

[hfreyther: Add mising task-sysmocom-feed entry]
2015-08-18 14:09:32 +02:00
Holger Hans Peter Freyther d777b0ecd0 sysmocom-backup: Store the UUCP data as well
Store UUCP configuration in the backup as well.
2015-08-11 14:09:12 +02:00
Holger Hans Peter Freyther 2a2a0cf499 sysmocom-backup: Create a single sysmocom-backup-default
We can not have sysmocom-backup-default and sysmocom-backup-data-default
installed at the same time. I don't want to play games with RREPLACE and
RPROVIDES either. So simply use one of the two files. Copy the two more
default values over to the other recipe.
2015-08-11 14:08:41 +02:00
Holger Hans Peter Freyther fdc0560b63 rauc: Create default files for a rauc slot to be used by the image
Create a sysmocom-nitb-rauc-image and create a rauc packagegroup
with the default depdencies and an include file to be used by
other images. This assumes that sysmocom-image.inc has been
included first.
2015-08-11 10:02:40 +02:00
Holger Hans Peter Freyther 79545ec6cd sysmoocom-backup-data: Optimize taking a backup
With the ro image we have a cheap way to figure out which
files were changed. We can run cmp between the to be backed
up file. This way the stored data will be minimal in the
sense of changed files.
2015-08-10 15:19:44 +02:00
Holger Hans Peter Freyther 09dbe7bd33 sysmocom-backup-data: Restore all files that were saved
The backup system allows to define which other files to store
so we should just restore everything regardless of where the
file is coming from.
2015-08-10 15:19:36 +02:00
Holger Hans Peter Freyther d1a9e0efbc sysmocom-backup-data: Fix the restore service
When the normal backup script is not installed the issue became
unnoticable. Use the new/right name for the backup script.
2015-08-10 15:19:29 +02:00
Holger Hans Peter Freyther cc6c1da7a0 sysmocom-backup-data: Store the machine-id and ssh host key 2015-08-07 19:28:52 +02:00
Holger Hans Peter Freyther 4ba1d03895 sysmocom-backup-data: Fix the glob to load additional files list
The defaults.files ends with files and not backup.
2015-08-07 19:26:20 +02:00
Holger Hans Peter Freyther b4124f6924 sysmocom-backup-data: Allow to install in parallel 2015-08-07 19:25:06 +02:00
Jan Luebbe 2ad885f06a systemd: ship emergency.service which triggers a reboot
This reboots the system instead of starting a shell on boot problems.
Because the slot will only be marked as sucessfully booted as the last
step in a normal boot, repeated emergency boots will cause a fallback at
the boot chooser level to the other slot.

Testing this is possible by passing 'emergency' via the kernel command
line.
2015-08-07 19:20:43 +02:00
Holger Hans Peter Freyther 6597f246c5 autossh: Force B=S because this is using autoconf and not automake
autossh is not using automake and has a broken buildsystem. For it
to build in the source directory.
2015-07-19 21:26:47 +02:00
Holger Hans Peter Freyther 1422f63b03 autossh: Add a small ssh spawner/link tester 2015-07-12 11:50:02 +02:00
Holger Hans Peter Freyther e2d36a57d4 task-sysmocom-feed: Build the new rtl8169-eeprom
We want this to be installable for the IDU system and for now
let's put it into the feed.
2015-07-11 08:56:10 +02:00
Jan Luebbe 5b5741f314 sysmocom-backup-data: add alternative package for overlay based systems
When using squashfs + overlayfs a root, we need to store the backup
somewhere else and restore it on every boot. Do avoid breaking existing
users, this is implemented in a separate recipe (as suggested by Holger).
2015-07-02 22:09:29 +02:00
Jan Luebbe f7b01afb65 sysmocom-backup: make file list configurable
Move the default file list to a separate file in /etc/sysmocom/backup.d,
which is itself included in the backup. Also create a symlink to the
most recent backup.
2015-06-26 10:01:15 +02:00
Henning Heinold 29faf705ed packagegroup-sysmobts-sob: add iproute2-misc package
Fixes: SYS#1609
2015-06-20 21:26:49 +02:00
Jan Luebbe 6fdbf6bc94 sysmocom-image: build a squashfs image as well
The /boot directory is excluded from the squashfs image only, as in that
case it is stored separately. This allows booting normal sysmocom images
as rauc slots.
2015-06-15 17:18:44 +02:00
Holger Hans Peter Freyther e5177cd80c task-sysmocom-feed: Build python-enum as well 2015-06-09 23:37:15 +02:00
Holger Hans Peter Freyther e9cb8049b0 ping: Provide a "flood" ping for the sob group
Related: SYS#1657
2015-05-22 00:42:23 +08:00
Holger Hans Peter Freyther bbfff1e487 task-sysmocom-feed: Build perl and include the new modules
We want these modules to be available, specially to
determine the real depedencies and then to fix them.
2015-05-21 18:15:35 +08:00
Holger Hans Peter Freyther 753b6db019 Create sysmobts-sob task and make sure the real ifupdown is installed
Add the new task to task-sysmocom-feed so it is being built by
default in our CI infrastructure.

make iputils available as well for people wanting to use a real
ping/traceroute/arping.

Related: SYS#1190
2015-05-21 15:17:11 +08:00
Henning Heinold a89b5587e2 image-static-dns.bb: new image snippet to set a static dns configuration
Fixes: SYS#1126
2015-05-19 21:10:02 +02:00
Holger Hans Peter Freyther ad976e4eb3 task-sysmocom-feed: Make the python json rpc available 2015-04-13 16:55:43 +02:00
Holger Hans Peter Freyther dd3b1def75 tasks-symocom-feed: Make the real ifupdown available and iproute2 2015-04-13 16:54:25 +02:00
Henning Heinold 3665ee11ce images: add snippet for writing the sysmocom.manifest
Fixes: SYS#1470
2015-04-10 19:11:15 +02:00
Holger Hans Peter Freyther 675690cc52 tasks-sysmocom-feed: Add logrotate to our sysmocom feed.
Related: SYS#1189
2015-02-22 13:29:55 +01:00
Harald Welte 38d1587db5 add pciutils to task-sysmocom-feed
It is handy to have it on the APU/BSC/NITB/IDU
2015-02-20 11:32:56 +01:00
Holger Hans Peter Freyther 5d56fdb07e task-sysmocom-feed: Make sure nfacct is in our feed as well
We want to use nfacct for better monitoring/matching. Put it
into the feed to be able to experiment with it.
2015-02-16 23:42:39 +01:00
Holger Hans Peter Freyther 8cff638993 bridge-utils: Import from meta-oe 2015-02-13 10:17:50 +01:00
Holger Hans Peter Freyther 53c20998d8 task-sysmocom-feed: Add python-pyserial/python-pexpect as well 2015-02-12 16:30:33 +01:00
Holger Hans Peter Freyther a0f0c46385 tasks-symocom-feed: Make CU available 2015-02-12 16:24:16 +01:00
Henning Heinold 1ed9350964 sysmocom-udhcpd-config: start the udhcpd on the sysmocom-bsc only when eth1 is present
* the change affects the config file, so the package number
  is bumped

Related: SYS#735
2014-12-12 18:49:38 +01:00
Holger Hans Peter Freyther ffdbc76ae8 misc: Start using "packagegroup-osmocom"
The notion of "task" has been deprecated for a long time because
the word is used for different things. The new word is "packagegroup"
which describes the usage of "task-*" in a more obvious way. Dora
and master builds can fully use packagegroup-* for everything and
for edison we would need to spend some time to add a provides for
packagegroup-* to the task- group. I don't intend to work on the
edison part right now.
2014-11-14 14:16:31 +01:00
Holger Hans Peter Freyther da06a847b5 misc: poky/LICENSE has changed.. reference a hopefully more stable file
Only reference the COPYING.MIT as it is unlikely to change in
the next upgrade.
2014-11-08 14:44:34 +01:00
Henning Heinold 4fb99f81c4 sysmocom-udhcpd-config: fix network mask
* the entry "option	subnet" takes the
  subnet mask not the subnet address,
  while the busybox dhcp-client was
  fine with it, the isc-dhcp-client complained with
  Error: an inet prefix is expected rather than "10.23.24.113/10.23.24.0".
2014-11-04 23:51:13 +01:00
Henning Heinold 8800a441a1 sysmocom-udhcpd-config: add systemd startup file
Fixes: SYS#735
2014-11-04 23:50:25 +01:00
Henning Heinold db14ffd17b i2c-tools: add the i2c-tools
* use the recipe from oe-core master
* add it to task-sysmocom-feed

Fixes: SYS#692
2014-10-28 15:23:03 +01:00
Holger Hans Peter Freyther 0fe0571683 misc-images: Remove images we are rarely/not using
The concept of directdisk image is overhauled as we are now
having a initramfs that can flash the next image through USB.
The dedicated E1/IP images are rarely to never used and did
probably bit-rot. For the next time we provide such a system
we can simply (write a script to) install the additional feed.
2014-10-24 20:16:44 +02:00
Holger Hans Peter Freyther 35ec4c11d9 task-sysmocom-feed: Provide a real "ip" as well 2014-10-07 21:21:10 +02:00
Holger Hans Peter Freyther c9952b5155 task-sysmocom-feed: Provide cronie as a cron implementation 2014-10-07 16:59:48 +02:00
Henning Heinold d6aabdf6b9 recipes-images: add fragement to install sshkeys
Fixes: partly SYS#518
2014-09-25 17:43:58 +02:00
Henning Heinold 7aba3280c5 recipes: add functions for generating a rootpasswd
The rootpassword can be set via the
enviroment variable ROOT_PASS either in
the local.conf or on the cmdline
before bitbake.

Fixes: partly SYS#518
2014-09-25 17:43:57 +02:00
Holger Hans Peter Freyther 2045245f3a sysmocom-backup: Allow to back-up more files than the initial config
Creating a new file in /etc/sysmocom/backup.d/ that ends with .backup
will be read during the backup and then be restored. This way we can
easily extend the files to backup.
2014-09-24 15:52:02 +02:00
Holger Hans Peter Freyther ddc43d20a7 tasks-sysmocom-feed: Provide lcr in our package feed as well 2014-09-24 15:22:43 +02:00
Henning Heinold 497be38b34 sysmocom-backup: use transform option on restore
* when restoring links e.g. for systemd files
  the links will be created with content// prefix

* use transform instead of strip to remove
  the "content/" prefix

* bump PR
2014-08-28 23:01:32 +02:00
Holger Hans Peter Freyther 313388cac2 task-sysmocom-bts: Include the sysmobts-config application
This way we should be able to use a single image on all devices

Fixes: SYS#559
2014-08-28 17:50:40 +02:00
Holger Hans Peter Freyther 34fc7b631b tasks-sysmocom-bts: Install packages for the sysmoBTS as well
We want to have a single image that will do the right thing on
the various BTS models we have. This means we will install the
sbts2050 utilitiy (it clashes with sysmobts-mgr anyway) and the
gpsd with a default config for it.

The sysmobts-v2 config file was for a specific usecase and is
obsolete for all intents and purposes. Make it the default

Related: SYS#559
2014-08-28 16:53:24 +02:00
Holger Hans Peter Freyther eda2017371 task-sysmocom-feed: Require iperf as well. We use it for PCU testing 2014-08-25 18:29:42 +02:00
Holger Hans Peter Freyther afd38eb11a task-sysmocom-feed: Add openvpn to the list of packages we want 2014-08-14 11:01:38 +02:00
Holger Hans Peter Freyther 2fb98567ea task-sysmocom-bts: Include gpsd/gps-utils in the image
For the slave BTS the GPS receiver will not work with the GPSD
but we can install it anyway as nothing bad will happen.

Fixes: SYS#131
2014-07-25 20:03:39 +02:00
Holger Hans Peter Freyther 2c4d15307b Add a "feed" package with software we want to make available
This should be a task with all the software we want to make available
to our customers. Add the software you need and bump the PR.
2014-07-17 11:50:19 +02:00
Henning Heinold 32746ad2eb bts-images: Remove the nls modules
The nls support to mount fat/vfat filesystems should be enabled
in all sysmocomkernel images.

Fixes: SYS#371
2014-06-03 20:06:12 +02:00
Henning Heinold 2a1e45a944 sysmocom-bsc-directimage: revert syslinux changes
* setting APPEND in the image file overwrites
  the APPEND from boot-directdisk.bbclass in edison, which
  creates the syslinux.cfg without "root=" stanza

* for dora we do not use syslinux or the image-directdisk
  so revert this paticular changes

Fixes: SYS#373
2014-05-23 09:04:25 +02:00
Harald Welte 7ac3edabb6 update PR for recent changes of sysmocom-backup and udhcpd-config 2014-05-19 18:55:49 +02:00
Harald Welte cc45ecae11 udhcpd.conf: Provide DNS server IP for BTSs
If we don't provide a DNS server via DHCP to the BTSs, then their
ntpdate will not succeed in contacting pool.ntp.org (resolver failure),
which in turn means they have the wrong date, which again in turn leads
to failing opkg update or openvpn certificate verification failures.
2014-05-19 18:53:25 +02:00
Harald Welte 08e4e4c26a sysmocom-backup: Include udhcpd.conf
... as some customers might have customer specific DHCP adresses/ranges
2014-05-19 18:51:30 +02:00
Harald Welte c4956c65a3 sysmocom-backup: Include /etc/lcr for lcr config files in backup
This is needed on all systems where we have customer-specific lcr
configuration.
2014-05-19 18:49:02 +02:00
Holger Hans Peter Freyther 7aeb916ea1 sysmocom-backup: Backup a new opkg config file for starterkits
We make the configuration packages for starterkit customers
available in a feed. Backup this feed configuration.

Fixes: SYS#365
2014-05-16 11:51:44 +02:00
Henning Heinold d88a758c4e sysmocom-backup: add the systemd-files for bsc, nitb and sgsn to backup when enabled
Fixes: SYS#261
2014-04-29 20:11:13 +02:00
Henning Heinold 1638def65e sysmocom-bsc-image: add kernel-module-nls-iso8859-1 and kernel-module-nls-cp437 and disable LINGUAS
Fixes: SYS#75
2014-04-29 16:52:04 +02:00
Holger Hans Peter Freyther 4b1f68ae33 cifs-utils: Move it to the extras like the other extras 2014-03-29 00:17:17 +01:00
Holger Hans Peter Freyther e2853d21b5 cifs-utils: Add recipe based on the 5.x recipe of meta-networking 2014-03-28 22:32:35 +01:00
Henning Heinold c5e607febc sysmocom-bsc-ip-image-directdisk: do not rename the ethernet interfaces to the new scheme
Fixes: SYS#277
2014-03-23 23:08:30 +01:00
Henning Heinold 36d4e0119a sysmocom-bsc-image: enable osmo-bsc for sysvinit or systemd 2014-03-11 18:34:43 +01:00
Henning Heinold 72ce4c5203 sysmocom-nitb-image: enable nitb for sysvinit or systemd 2014-03-11 18:34:43 +01:00
Henning Heinold 6f469116e1 sysmocom-bsc-ip-image-directdisk: switch from ext3 to ext4 filesystem 2014-03-11 18:17:51 +01:00
Henning Heinold b2a5a3a316 sysmocom-bsc: switch to kernelprovider to linux-sysmocom for dora
* use seperate defconfig, because of option changed from 2.6.39 to 3.10
* use python magic to switch between linux and linux-sysmocom
* add sysmocom-bsc to compatible machines for linux-sysmocom
* add new confiugration parameters for syslinux
2014-03-11 18:17:36 +01:00
Holger Hans Peter Freyther 37ae8d11b7 sysmocom-image: Add package-management as IMAGE_FEATURES
In post edison we will need to ask the package class to not throw
away the /var/lib/opkg directory with the state of installed packages.
2013-11-27 12:25:01 +01:00
Holger Hans Peter Freyther 6431d35a85 busybox: Move it to the recipes-core directory to match the naming
Jan pointed out that the original busybox is inside the recipes-core
directory, move it there as well.
2013-11-27 12:22:52 +01:00
Holger Hans Peter Freyther b62f6083a5 master: Move shared recipes into the yocto-edison directory
Master has moved forward and we need to move the bbappends into the
yocto-edison folder. For the task-core-boot it has been renamed to
the packagegroup-core-boot and we do not need to increase the version
number for master.
2013-11-27 12:22:52 +01:00
Harald Welte e9ead4c0f3 task-sysmocom-bts: Include sbts2050-util on sysmobts-2050 2013-10-04 23:39:44 +02:00
Harald Welte b16ceec77f update to recent osmo-bts master to include sysmobts-util
sysmobts-util is used to set/get the model_number / trx_nr on the sysmoBTS 2050.
2013-10-04 21:40:30 +02:00
Holger Hans Peter Freyther f5d3fba955 sysmocom-backup: Save two more files from the etc directory
Save the ifplugd.sh script and hostname in the backup as well. I have
a usecase where these two files were modified.
2013-06-22 17:20:57 +02:00
Holger Hans Peter Freyther 03fd342e14 sysmocom-backup: Backup all of /etc/default
Additional applications might store files in /etc/default and it
is the easiest to backup up all of them. This has the danger that
after an upgrade the default file is not compatible/optimal but
we will need to deal with that once it occurs.
2013-06-22 09:48:01 +02:00
Holger Hans Peter Freyther 69d9a0609d sysmocom-backup: Backup the /etc/network/interfaces file 2013-06-22 09:36:02 +02:00
Holger Hans Peter Freyther e9d0aa7cb4 misc: Use ALLOW_EMPTY_${PN} and RDEPENDS_${PN} to silent warnings
Newer versions of poky warn about ALLOW_EMPTY on non _PN versions.
2013-06-19 18:11:28 +02:00
Harald Welte 49ca632e9a busybox: include support for CIFS mounting 2013-05-27 16:48:30 +02:00
Holger Hans Peter Freyther a144d1c3c0 tasks-sysmocom-tools: Move wget, ca-cacert-rootcert and sysmocom-backup to tools
We have some images that need the real wget for upgrades, the SSL
root certificate of CA-Cert but that doesn't use task-sysmocom to
build the image. Move these utilities into the tools task.
2013-05-15 12:54:27 +02:00
Holger Hans Peter Freyther 5e475b6b99 images: Remove the sanity check for including an ext3 filesystem
This sanity check is included in the used bbclass directly and to
support both Edison and master we will need to remove the custom
python code due a change in indention in the python code.
2013-04-11 18:43:51 +02:00
Holger Hans Peter Freyther 8b40a0c2f9 task-sysmocom-debug: Remove oprofile as it is quite outdated
We should use perf for future performance problems but it might
require more work (e.g. not to install the source into the -dbg
package, adding newt, etc.). But oprofile is not very nice to
use right now anyway.
2013-04-11 18:43:35 +02:00
Holger Hans Peter Freyther d9a117ed21 busybox-syslog: Increase back to notice (6) for the logging
This sadly still prints the firmware reload messages. But this is
necessary right now. The fpgadl/dspdl drivers do not log fatal
failures so the 'success' is the only information we have. This
is to be fixed in the driver.
2013-03-17 19:46:41 +01:00
Holger Hans Peter Freyther 84f23b2203 syslog: Use /media/mmcblk0p1/log to match /var/log
The nitb configuration expects /media/mmcblk0p1/log and to make it
work and match with unix naming use the singular version.
2013-03-17 19:23:39 +01:00
Holger Hans Peter Freyther 87f47c8586 busybox-syslog: Log to the MMC card if present
If the first partition of a MMC card is mounted and has a logs/
directory syslog will start to write log messages to the MMC card
in the directory /media/mmcblk0p1.
2013-03-17 15:09:44 +01:00
Holger Hans Peter Freyther 7389f6f2b1 busybox-ifplugd: Disable the restart target as it is not working
This issue is documented in PRJ#72. The easiest is to to keep the
old software running as everything else is racy and start-stop-daemon
does not appear to implement the --retry command. Let's see how
far we get with this workaround.
2013-03-17 14:22:55 +01:00
Holger Hans Peter Freyther b7f2cddc23 busybox: Copy the new OE-core syslog startup for the loglevel handling
We want to only log a given loglevel, backport the start up script
from OE-Core to get the LOGLEVEL variable. This removes the MARKINT
and adds DROPDUPLICATES and LOGLEVEL.
2013-03-17 13:59:28 +01:00
Holger Hans Peter Freyther 2b59ca73fe task-sysmocom: Add the new sysmocom-backup as dependency
Make sure the sysmocom-backup scripts are installed on the device
so customers can backup and restore these files.
2013-02-16 16:03:39 +01:00
Holger Hans Peter Freyther c4c453a1db sysmocom-backup: Create two shell scripts for backup/restore
Create shell scripts that backup and restore configuration files
used by the sysmocom products.
2013-02-16 16:02:37 +01:00
Harald Welte 489f392cc6 update udhcp.conf to add router/subnet/broadcast
... otherwise busybox-udhcpc is not happy with it
2013-02-07 15:44:22 +01:00
Holger Hans Peter Freyther 8b61400347 task-core-boot: Make sure the 'kernel' package is installed
The modules depend on kernel-base (renamed kernel-3.2.35) package,
the tasks depend on some modules and nothing needed the kernel package.

In OE Core/Poky the machines depend on kernel-modules which will pull
the kernel package into the rootfs. We do it by hand using the essential
depends and bumping the PR for the task-core-boot.

I have verified that on a kernel ugrade task-core-boot will be updated
and the kernel package is installed.
2013-01-14 20:28:45 +01:00
Harald Welte e74231478d task-sysmocom-bts needs to be PACKAGE_ARCH=MACHINE_ARCH
otherwise we would still end up with a sysmobts-calib dependency on the v1
hardware.
2013-01-11 18:45:15 +01:00
Harald Welte 98b850cdb7 task-sysmocom-bts: calib is sysmobts-v2-only 2013-01-11 18:45:13 +01:00
Jan Luebbe 5e17d8e537 Attempt to target multiple versions of Poky at the same time
The idea is that the basic extension resides inside the the normal
recipe directories. Depending on the version of poky the bbappends
need to be included. Appends applying to all versions will be put
into the shared folder, specific ones into the specific directory.
Once a bbappend can not be shared anymore it needs to be copied.
2012-09-15 17:44:57 +02:00
Holger Hans Peter Freyther 97ba83f17a busybox: Target both edison and HEAD in this overlay
One needs to use BBMASK or delete depending on the targeted
OE-Core/Poky version.
2012-09-04 14:11:51 +02:00
Holger Hans Peter Freyther fd604f8497 sysmocom-*-image: Add the IP and E1 image to this layer
Add a BSC IP and BSC E1 image to the meta-sysmocom-bsp.
2012-08-20 19:30:02 +02:00
Harald Welte 2be99ac429 Add a new task 'task-gprscore' containing sgsn/ggsn/routing 2012-08-15 16:34:10 +02:00