From 569bd0135e6a30d41be06abe157669766771084d9107e648483cd9b2c4a2829e Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 28 Feb 2018 19:02:36 +0000 Subject: [PATCH] Accepting request 580653 from devel:CaaSP OBS-URL: https://build.opensuse.org/request/show/580653 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/read-only-root-fs?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + README.packaging.txt | 11 ++++ _service | 14 +++++ _servicedata | 6 ++ ...nly-root-fs-1.0+git20180227.44d5e8a.tar.xz | 3 + read-only-root-fs.changes | 11 ++++ read-only-root-fs.spec | 59 +++++++++++++++++++ 8 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 README.packaging.txt create mode 100644 _service create mode 100644 _servicedata create mode 100644 read-only-root-fs-1.0+git20180227.44d5e8a.tar.xz create mode 100644 read-only-root-fs.changes create mode 100644 read-only-root-fs.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/README.packaging.txt b/README.packaging.txt new file mode 100644 index 0000000..8451b89 --- /dev/null +++ b/README.packaging.txt @@ -0,0 +1,11 @@ +This package should use just the content of the git tree. If you need +to make changes, make them in git and update the package from git (you +can send merge request if you don't have write access). + +The online repository is at: +http://github.com/openSUSE/read-only-root-fs + +For building the package from git run the service directly: +osc service disabledrun + +Note that spec and changes files are not part of the git repo. diff --git a/_service b/_service new file mode 100644 index 0000000..607bcf9 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + 1.0 + 1.0+git%cd.%h + git://github.com/openSUSE/read-only-root-fs.git + git + enable + + + xz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..0a668e6 --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + git://github.com/openSUSE/read-only-root-fs.git + 44d5e8a57eb43bc854226288e5f615dd9d09b252 + + \ No newline at end of file diff --git a/read-only-root-fs-1.0+git20180227.44d5e8a.tar.xz b/read-only-root-fs-1.0+git20180227.44d5e8a.tar.xz new file mode 100644 index 0000000..7664279 --- /dev/null +++ b/read-only-root-fs-1.0+git20180227.44d5e8a.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dda3202a4f679d6912a2058852cd042cc799cd8eee5c1f4d82068c3f960d5c5 +size 7424 diff --git a/read-only-root-fs.changes b/read-only-root-fs.changes new file mode 100644 index 0000000..56cb23f --- /dev/null +++ b/read-only-root-fs.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Tue Feb 27 14:57:51 UTC 2018 - kukuk@suse.de + +- Update to version 1.0+git20180227.44d5e8a: + * Initial import of read-only-root-fs stuff from caasp-tools + +------------------------------------------------------------------- +Tue Feb 27 15:43:59 CET 2018 - kukuk@suse.de + +- Initial version + diff --git a/read-only-root-fs.spec b/read-only-root-fs.spec new file mode 100644 index 0000000..85048cd --- /dev/null +++ b/read-only-root-fs.spec @@ -0,0 +1,59 @@ +# +# spec file for package read-only-root-fs +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: read-only-root-fs +Version: 1.0+git20180227.44d5e8a +Release: 0 +Summary: Files and Scripts for a RO root fileystem +License: GPL-2.0-or-later +Group: System/Fhs +URL: https://github.com/openSUSE/read-only-root-fs +Source: read-only-root-fs-%{version}.tar.xz +Source1: README.packaging.txt +BuildArch: noarch + +%description +Files, scripts and directories to run the system with a +read-only root filesystem with %{_sysconfdir} writeable via overlayfs. + +%prep +%setup -q + +%build + +%install +cp -a usr %{buildroot} +mkdir -p %{buildroot}%{_localstatedir}/lib/overlay +mkdir -p %{buildroot}%{_localstatedir}/lib/overlay/etc +mkdir -p %{buildroot}%{_localstatedir}/lib/overlay/work-etc + +%post +if [ -f %{_sysconfdir}/fstab -a ! -f %{_sysconfdir}/fstab.sys ]; then + %{_sbindir}/setup-fstab.sys-for-overlayfs ||: +fi +exit 0 + +%files +%license COPYING +%{_sbindir}/setup-fstab.sys-for-overlayfs +%{_localstatedir}/lib/overlay +%dir %{_prefix}/lib/dracut +%dir %{_prefix}/lib/dracut/modules.d +%{_prefix}/lib/dracut/modules.d/99read-only-root-fs + +%changelog