[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#816892: debootstrap synchronize the whole filesystem

Package: debootstrap
Version: 1.0.79
Severity: normal
Tags: patch

Sync at the end of debootstrap sometimes takes for a while. It seems
enough to synchronize only a target filesystem.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.3 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages debootstrap depends on:
ii  wget  1.17.1-1+b1

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2014.3
ii  gnupg                   1.4.20-4

debootstrap suggests no packages.

-- no debconf information
diff -uNrp debootstrap-1.0.79.orig/debootstrap debootstrap-1.0.79/debootstrap
--- debootstrap-1.0.79.orig/debootstrap	2015-11-09 13:01:25.000000000 +0900
+++ debootstrap-1.0.79/debootstrap	2016-03-06 19:22:04.970728229 +0900
@@ -686,7 +686,7 @@ if am_doing_phase second_stage; then
 			mv "$TARGET/debootstrap/debootstrap.log" "$TARGET/var/log/bootstrap.log"
-	sync
+	sync -f "$TARGET"
 	if [ "$KEEP_DEBOOTSTRAP_DIR" = true ]; then
 		if [ -x "$TARGET/debootstrap/debootstrap" ]; then

Reply to: