Bug#847446: GRUB\LILO wont install in live mode, only in graphical install

2016-12-08 Thread Hakan Bayındır
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hello,

This is a problem about debian-installer and
debian-installer-launcher. Problem is outlined and patched in bug
#843130. Please refer to this bug [0] for details.

Best regards,

Hakan

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843130

On 12/08/2016 01:13 PM, Роман wrote:
> Package: installation-reports Severity: important
> 
> Dear Maintainer,
> 
> I was installing Debian Jessie 8.6.0 via LiveDVD image in 'live'
> mode, on a VirtualBox virtual machine, w\o Internet connection. And
> I got a GRUB install failure; I then tried to install LILO instead,
> with no success. The error was saying something like "failed to
> install package 'grub-pc' to /target/ ...". I then finished the
> installation w/o the bootloader, rebooted again in live mode, and I
> couldn't use commands "grub-install" or "update-grub", getting a
> message "command not found". "locate grub-install" gave nothing
> too. And then I tried a new installation, this time in 'graphical
> mode', and everything went fine, including GRUB installation. This
> installation was w\o Internet connection too.
> 
> 
> 
> -- Package-specific info:
> 
> Boot method: LiveDVD Image version:
> http://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/debia
n-live-8.6.0-amd64-cinnamon-desktop.iso.torrent
> 2016-09-17 Date: 08 Dec 2016 11:00am
> 
> Machine: VirtualBox 4.3.40 (IBM PC as a host) Partitions: Файловая
> система Тип  1K-блоков Использовано Доступно Использовано%
> Cмонтировано в /dev/sda1ext4   9711136  3925516
> 5269268   43% / udev devtmpfs 10240
> 0102400% /dev tmpfstmpfs   411712
> 5968   4057442% /run tmpfstmpfs
> 1029272  144  10291281% /dev/shm tmpfs
> tmpfs 51204 51161% /run/lock 
> tmpfstmpfs  10292720  1029272
> 0% /sys/fs/cgroup /dev/sda2ext4   247536089016
> 22408884% /home none vboxsf   429662204
> 342469484 87192720   80% /media/sf_Shared_Folder tmpfs
> tmpfs   2058564   2058521%
> /run/user/120 tmpfstmpfs   205856   12
> 2058441% /run/user/1000
> 
> 
> 
> Base System Installation Checklist: [O] = OK, [E] = Error (please
> elaborate below), [ ] = didn't try it
> 
> Initial boot:   [O] Detect network card:[O] Configure
> network:  [E] Detect CD:  [O] Load installer
> modules: [O] Clock/timezone setup:   [O] User/password setup:
> [O] Detect hard drives: [O] Partition hard drives:  [O] Install
> base system:[O] Install tasks:  [O] Install boot
> loader:[E] Overall install:[O]
> 
> Comments/Problems: Had no network cable connected. Got an error
> installing GRUB, as well as LILO.
> 
> I was installing Debian Jessie 8.6.0 via LiveDVD image in 'live'
> mode, on a VirtualBox virtual machine, w\o Internet connection. And
> I got a GRUB install failure; I then tried to install LILO instead,
> with no success. The error was saying something like "failed to
> install 'grub-pc' to /target/ ...". I then finished the
> installation w/o the bootloader, rebooted again in live mode, and I
> couldn't use commands "grub-install" or "update-grub", getting a
> message "command not found". "locate grub-install" gave nothing
> too. And then I tried a new installation, this time in 'graphical
> mode', and everything went fine, including GRUB installation. This
> installation was w\o Internet connection too.
> 
> 
> 
> 
> == Installer
> lsb-release: == 
> DISTRIB_ID=Debian DISTRIB_DESCRIPTION="Debian GNU/Linux installer" 
> DISTRIB_RELEASE="8 (jessie) - installer build 20150422+deb8u4+b1" 
> X_INSTALLATION_MEDIUM=cdrom
> 
> == Installer
> hardware-summary: == 
> uname -a: Linux debianVirtPC 3.16.0-4-amd64 #1 SMP Debian
> 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux lspci -knn: 00:00.0
> Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma]
> [8086:1237] (rev 02) lspci -knn: 00:01.0 ISA bridge [0601]: Intel
> Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000] lspci
> -knn: 00:01.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB
> PIIX4 IDE [8086:7111] (rev 01) lspci -knn: Kernel driver in
> use: ata_piix lspci -knn: 00:02.0 VGA compatible controller [0300]:
> InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
> [80ee:beef] lspci -knn: 00:03.0 Ethernet controller [0200]: Intel
> Corporation 82540EM Gigabit Ethernet Controller [8086:100e] (rev
> 02) lspci -knn: Subsystem: Intel Corporation Device
> [8086:001e] lspci -knn: Kernel driver in use: e1000 lspci -knn:
> 00:04.0 System peripheral [0880]: InnoTek Systemberatung 

Bug#845401: debian-installer: auto=true not working

2016-11-22 Thread Hakan Bayındır

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

When both the file (url) and interfce is defined at the same time, d-i
initializes the network and gets the file, then it tries to make a
full-automatic installation without asking any questions. IIRC, that's
called d-i early-network-init preseeding. I was unable to find the
documentation at the moment, but I regularly use this method to automate
installs.

Regards,

Hakan


On 11/23/2016 06:35 AM, Cyril Brulebois wrote:
> Control: severity -1 normal
> Control: tag -1 - d-i
>
> Andrey Yarkov  (2016-11-23):
>> Package: debian-installer
>> Severity: grave
>> Tags: d-i
>> Justification: renders package unusable
>
> Sorry, but I'm going to disagree here…
>
>> Dear Maintainer,
>>
>> I added the following to kernel parameters on Jessie-8.6.0 official
>> installation DVD-1
>>
>> auto=true url=http://my.ip.addr.ess/preseed.cfg
>>
>> but I got asked keyboard or locale related questions anyway.
>>
>> Could it be that the delaying functionality got lost?
>
> I think that's documented in the installation guide:
>
> “B.4.1. Localization
>
> Setting localization values will only work if you are using initrd
> preseeding. With all other methods the preconfiguration file will only
> be loaded after these questions have been asked.”
>
> See: https://www.debian.org/releases/stable/amd64/apbs04.html.en
>
> Leaving this open for the time being, but I think it should be closed as
> not a bug.
>
>
> KiBi.

-BEGIN PGP SIGNATURE-

iQJHBAEBCAAxFiEEULItFeESq+SJGkXo3mItzvCdB5wFAlg1MPETHGhha2FuQGJh
eWluZGlyLm9yZwAKCRDeYi3O8J0HnG5QEAC++5NgMl/7RWcMSl0itzsikB+/yyJe
TDUym2Zzmk/M2vMTGa4P9zPBI4A+Njh1HoqAZthOQKX/xoV83H0paVyJqIiSKd91
ZPE9CmS0bsZKD/y210U4gDBkhiI5jS8ZVlVPQH85ZUUNOI/ehLv0dJhNhopglxs0
k2ruXCJIq8IAXOoeOlSdu+AmmMWuTwY0ZAF66b1wD0KaJJeeYJ5hM1DalPGpt3KH
aYTx7/uGi0MzHUGp0tN5Uem5rER3uFROPXCnQKrDIGr8TfGJW2DI/PltYxv1X2hk
GUtCNtgZhuY8Yh5TF6qTFi0WBi4SU1geRBogIlJa3lbaxh1nOHYYfVlDAPe8JR+h
Dj0JyC1hVhQg9s6pc/k2xsjhSiody/uAxTBc654Ds/fKeBGg7n6hp/6/ly7Xm8ll
ZncwC8Lb2QLCjuYSVTjHvb1z+zNfLag22wDSt91pKZwRqRRSrenu37MLKBiusVr9
Zc5FCCKnNfCQbqMKt9MKniCYMqRXwSojiWn8moXz8eJGkwEAN6lWMsFixLK6MuZ3
hoLHgGJ2vzi9C9pvhqDzMclIh2MtfnepVemnX/uVF10QaeoGFfvPvR+bcPsi3zFd
u58nhDB+oXjnfPvD9Imr66o2rrkl3ttvLsrUy/gMkyTgsGyB0OJNQT91jpDd41l2
WYN2HRG76ACKmg==
=HiO3
-END PGP SIGNATURE-



Bug#843130: debian-installer-launcher: Installer launcher doesn't load apt-cdrom-setup, causes offline GRUB install problem.

2016-11-10 Thread Hakan Bayındır
Hello Fernando,

I didn't remove the di-utils-exit-installer udeb. I just added another anna 
line under (or over?) the di-utils-exit-installer line. When you apply the 
patch, it should add a line and remove nothing.

Thanks for testing and feedback,

Best regards,

Hakan

On 10 Kasım 2016 Perşembe 12:13:21 +03 Fernando Toledo wrote:
> On Sat, 05 Nov 2016 09:37:42 +0300 Hakan =?utf-8?B?QmF5xLFuZMSxcg==?=
> 
>  wrote:
> > Hello,
> > 
> > This patch also fixes bug #785069. Please see [0].
> > 
> > Best regards,
> > 
> > Hakan
> > 
> > [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785069
> 
> Hi Hakan!
> 
> I test your fix and i can confirm that work, just with minor diff . The
> live plugin file has this content:
> 
> d-i anna/choose_modules string di-utils-exit-installer
> 
> I just append "apt-cdrom-setup":
> 
> d-i anna/choose_modules string di-utils-ext-installer apt-cdrom-setup
> 
> Why you remove di-utils-exit-installer in your patch ?
> 
> Thanks for your time for catch this issue!!! =)



Bug#843130: debian-installer-launcher: Installer launcher doesn't load apt-cdrom-setup, causes offline GRUB install problem.

2016-11-05 Thread Hakan Bayındır
Hello,

This patch also fixes bug #785069. Please see [0].

Best regards,

Hakan

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785069



Selecting udebs to be loaded in live-installer

2016-10-05 Thread Hakan Bayındır
Hello,

Is there a way to configure which udebs will be installed to the installer 
environment during live-installer startup? I’m working on bug #785069 [1] and 
found out that some udebs which are installed on normal installer environment 
is missing on the live-installer environment.

Best Regards,

Hakan Bayindir

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785069


Bug#785069: jessie live-installer can't install grub when booted via usb drive without internet

2016-10-05 Thread Hakan Bayındır
I’ve dug the problem more and found out that when the installer is started from 
the boot menu, apt-cdrom-setup udeb is also added to the installer, however 
when installer is started from the live-environment, this udeb is omitted 
somehow. This causes installation media not to be scanned as a candidate apt 
repository after installation completes. 

The bug may solve itself if somehow live-installer also loads apt-cdrom-setup 
udeb during startup. I personally didn’t find a way to do so yet.


Bug#838919: debian-installer: please calculate swap parition according to max RAM supported by the motherboard

2016-09-26 Thread Hakan Bayındır
On Monday, September 26, 2016 10:23:02 AM EEST Lennart Sorensen wrote:
> On Mon, Sep 26, 2016 at 05:06:18PM +0300, Martin-Éric Racine wrote:
> > Package: debian-installer
> > Severity: wishlist
> > 
> > As far as I can tell, d-i calculates the size of the swap partition
> > according to the curently installed amount of RAM.
> > 
> > Whenever the RAM is upgraded later on, the swap parition no longer
> > fulfills its intended purpose, in cases when it would be needed to store
> > hibernate images, since the parition was calculated to store a much
> > smaller RAM image.
> > 
> > A more desirable method would be for d-i to use 'dmidecode' to probe the
> > system's memory controller for the maximum amount of RAM that is
> > supported and to calculate the swap partition size according to that.
> Of course many people never upgrade their ram, and often going beyond 50%
> of maximum gets very expensive.
> 
> Also many people never suspend.
> 
> Also dmidecode is x86 only and some older systems didn't have it, so it
> wouldn't help the majority of architectures.
> 
> So while it is an idea, I am not convinced it doesn't actually create
> problems.
> 
> Besides I could move the disk to a new system later which could have
> even more ram, so even making it as large as dmidecode says won't solve
> all cases.  I would think that case is at least as likely as maxing out
> the ram in a machine is.

Besides, some servers (and similarly workstations) have exorbitant memory 
capacities. I've managed some servers with 256GB RAM capacity, and since these 
servers were designed for processing roles, they had ~300GB disks. In that 
case, most of the disk will be wasted as swap which may never be used in its 
lifetime.

So in either desktop or server case, dmidecode way looks more problematic. It 
potentially wastes space, and addresses a rare problem.



Bug#835391: live-installer: Disables install media early, prevents bootloader install.

2016-08-25 Thread Hakan Bayındır
Package: live-installer
Version: 49
Severity: important
Tags: d-i

Dear Maintainer,

live-installer cannot install bootloader when no network is present, below
are the details.

The Problem:
live-installer disables install media as a source in file
/target/etc/apt/sources.list
too early, leading to bootloader install fail on non-networked systems.
Problem is not reproducible on normal (directly booted) installer or systems
with network connection (if you choose to use a network mirror).

Diagnosing Steps:
- Verified bug is not present in "normal / text mode" installer.
- Verified that GRUB is present under /pool directory in install media.
- Intervened installation before GRUB install, enabled the source
  and installation completed successfully.

How to reproduce:
1. Get the latest Debian Stable Live DVD
2. Remove network connection from system.
3. Boot to desktop environment
4. Install system using Install Debian Jessie link.
5. At the end, you won't be able to install the boot loader.

Expected outcome:
1. Get the latest Debian Stable Live DVD
2. Remove network connection from system.
3. Boot to desktop environment
4. Install system using Install Debian Jessie link.
5. Install completes successfully.


Best regards,

Hakan Bayindir

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

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