Package: ntfs-3g
Version: 1:2014.2.15AR.2-1
Severity: wishlist
Tags: patch

Dear Maintainer,

I'm using a losetup'd root partition on myoffice laptop with systemd.

Systemd kill ntfs-3g on shutdown, because it ignores /run/sendsigs.omit.d &
use other semantics:

The lenghty specification:
http://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/

Some short implementation:
https://github.com/koniiiik/oi-live/blob/master/oi-live/ntfs-3g-initrd-wrapper.c

I've requested the author to explicit under which license this is published:
https://github.com/koniiiik/oi-live/issues/2



Can you please add proper systemd support in ntfs-3g package ?
You can either ship (and even compile) the wrapper, or patch ntfs-3g so that it
add a '@' in the process name when needed/when called with some specific option.

Cheers,

Alexandre Detiste



Here is the remainder of my setup:

-- /etc/initramfs-tools/hooks/ntfs.sh
...
copy_exec /sbin/losetup /sbin
copy_exec /bin/mknod /bin
copy_exec /usr/local/sbin/ntfs-3g-initrd-wrapper /bin/ntfs-3g-d

-- /etc/initramfs-tools/scripts/init-premount/ntfs-mount.sh
...
mkdir -p /media/win
ntfs-3g-d /dev/disk/by-uuid/F4B0DF43B0DF0ACE /media/win
mknod /dev/loop0 b 7 0
losetup /dev/loop0 /media/win/linux.img

-- /etc/initramfs-tools/scripts/init-bottom/mount-move.sh
...
mount -n -o move /media/win ${rootmnt}/media/win
nuke /media/win
ln -s ${rootmnt}/media/win /media/win

-- /usr/local/sbin/cp_shutdown (called from /etc/rc.local)
#!/bin/sh
cp /usr/local/sbin/shutdown /run/initramfs/ -v
mkdir /run/initramfs/bin/
cp -v /bin/busybox /run/initramfs/bin/
cd /run/initramfs/bin/
ln -s -v busybox sh

-- /usr/local/sbin/shutdown
#!/bin/sh
# this run inside the initramfs on shutdown
mkdir /oldsys
for i in sys proc run dev; do
        mkdir /oldsys/$i
        mount --move /oldroot/$i /oldsys/$i
done
mkdir /win
mount --move /oldroot/media/win /win
umount /oldroot
sleep 2
umount /dev/sda2
$1 -f -n

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ntfs-3g depends on:
ii  fuse               2.9.3-15+b1
ii  libc6              2.19-13
ii  libgcrypt20        1.6.2-4+b1
ii  libgnutls-deb0-28  3.3.8-5
ii  libgpg-error0      1.17-2
ii  multiarch-support  2.19-13

ntfs-3g recommends no packages.

ntfs-3g suggests no packages.

-- debconf information:
  ntfs-3g/setuid-root: false
  ntfs-3g/initramfs: true


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to