Skip to content
Snippets Groups Projects
Commit 29bc416e authored by Frédéric Dalleau's avatar Frédéric Dalleau
Browse files

OSTree create mountpoints for Apertis services


/media is a symlink, which prevent media service to mount
anything on it.
/Applications does not exits, but the rootfs being readonly,
it is not possible to create the mountpoint. This prevents
canterbury to start

Signed-off-by: default avatarFrédéric Dalleau <frederic.dalleau@collabora.com>
Reviewed-by: default avatarHéctor Orón Martínez <hector.oron@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D7608
parent a9e985f8
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,7 @@ L /var/home - - - - ../sysroot/home
d /var/roothome 0700 root root -
d /var/local 0755 root root -
d /run/media 0755 root root -
d /Applications 0755 root root -
""")
try:
......@@ -209,13 +210,22 @@ d /run/media 0755 root root -
( "/sysroot/ostree", "ostree" ),
( "/var/home", "home" ),
( "/var/roothome", "root" ),
( "/var/local", "usr/local" ),
( "/run/media", "media" ) ]
( "/var/local", "usr/local" ) ]
for (target, link) in SYMLINKS:
shutil.rmtree (os.path.join (rootdir, link), True)
os.symlink(target, os.path.join (rootdir, link))
MOUNTPOINTS = [
( "media" ),
( "Applications" ) ]
for (mountpoint) in MOUNTPOINTS:
try:
os.mkdir(os.path.join (rootdir, mountpoint))
except OSError:
pass
if __name__ == '__main__':
rootdir = os.environ["ROOTDIR"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment